NicoDevs
NicoDevs
NNuxt
Created by NicoDevs on 3/12/2025 in #❓・help
Issue: Nuxt Bridge fails to run or build, error with unenv mock proxy
When trying to run a Nuxt 2 application with nuxt-bridge on, I get the following error:
ERROR Error: Could not load /node_modules/unenv/dist/runtime/runtime/mock/proxy.mjs (imported by node_modules/nitropack/dist/runtime/internal/error/dev.mjs): ENOENT: no such file or directory, open '/node_modules/unenv/dist/runtime/runtime/mock/proxy.mjs'
ERROR Error: Could not load /node_modules/unenv/dist/runtime/runtime/mock/proxy.mjs (imported by node_modules/nitropack/dist/runtime/internal/error/dev.mjs): ENOENT: no such file or directory, open '/node_modules/unenv/dist/runtime/runtime/mock/proxy.mjs'
So it can't find the proxy.mjs but is looking in dist/runtime/runtime/mock/proxy.mjs when in fact the file is in dist/runtime/mock/proxy.mjs Minimal repro here: https://github.com/nicodevs/bridging Any ideaon how to solve it?
5 replies