can't build bridge project with `ipx` in serverMiddleware
See original GitHub issueEnvironment
- nuxt-bridge: 3.0.0-27235989.d52b1e8
- node: v12.14.0
Describe the bug
If I try to run the project an error occur ( see screenshot below )
Reproduction
- Install nuxt/bridge as explained in the nuxt docs
- run
npm run dev
Additional context
No response
Logs
FATAL Cannot read property 'default' of undefined 01:45:23
at nuxt.config.js:12:186
at v (node_modules/jiti/dist/jiti.js:1:54801)
at Object.loadNuxtConfig (node_modules/@nuxt/config-edge/dist/config.js:819:15)
at loadNuxtConfig (node_modules/nuxt-edge/node_modules/@nuxt/cli-edge/dist/cli-index.js:310:36)
at NuxtCommand.getNuxtConfig (node_modules/nuxt-edge/node_modules/@nuxt/cli-edge/dist/cli-index.js:412:26)
at Object._listenDev (node_modules/nuxt-edge/node_modules/@nuxt/cli-edge/dist/cli-dev.js:69:30)
at Object.startDev (node_modules/nuxt-edge/node_modules/@nuxt/cli-edge/dist/cli-dev.js:55:25)
at Object.run (node_modules/nuxt-edge/node_modules/@nuxt/cli-edge/dist/cli-dev.js:50:16)
at NuxtCommand.run (node_modules/nuxt-edge/node_modules/@nuxt/cli-edge/dist/cli-index.js:371:22)
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
The serverMiddleware Property - Nuxt
This allows you to create a client API/server API pattern using Nuxt alone. This means that from the browser (for example, within a...
Read more >Nuxt - server middleware not working on production
I found an answer on github issue nuxt repo: This is correct - server middleware aren't compiled or part of your webpack build...
Read more >Issue Using Sharp Package In Nuxt - ADocLib
I get error during building in Vercel I choose node version 14 for project. 04:18:53.671 sharp: Downloading https://github.com/lovell/sharplibvips/. Nuxt can be ...
Read more >Package Diff: @netlify/plugin-nextjs @ 4.14.2 .. 4.18.0
Create a 'middleware.ts' or 'middleware.js' file in your project root to add custom ... await copyEdgeSourceFile({ edgeFunctionDir, file: 'ipx.ts', ...
Read more >Can't build bridges...bug? :: Cliff Empire General Discussions
I had the same problem at first . What I do now is place all of my bridges early in the game but...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
mhm I think this is coming from IPX. There is the line
import { stat, readFile } from 'fs-extra';
inipx/dist/index.mjs
EDIT: There is already an issue for that https://github.com/unjs/ipx/issues/50
I think Node 14+ is required. This fragment from docs:
“* If you already have Node.js installed, check with node --version that you are using v14 or v16.” https://v3.nuxtjs.org/getting-started/introduction#prerequisites