Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nuxt] [request error] [unhandled] [500] __DEV__ is not defined #11

Open
gygoo opened this issue Oct 11, 2022 · 0 comments
Open

[nuxt] [request error] [unhandled] [500] __DEV__ is not defined #11

gygoo opened this issue Oct 11, 2022 · 0 comments

Comments

@gygoo
Copy link

gygoo commented Oct 11, 2022

I have this error in nuxt3 - production build only (npm run build - > npm run preview)

Works fine in dev mode (npm run dev)

It probably has to do with SSR?

Stack:
"nuxt": "^3.0.0-rc.11"
"@nuxt3/apollo-module": "^0.1.1",

Nuxi 3.0.0-rc.11
information_source Node.js version: 16.14.0
information_source Preset: node-server
information_source Working dir: .output
information_source Loading .env. This will not be loaded when running the server in production.
information_source Starting preview command: node ./server/index.mjs

Listening http://[::]:3000

Error:
[nuxt] [request error] [unhandled] [500] DEV is not defined
at createHttpLink (./server/chunks/app/server.mjs:4252:3)
at ./server/chunks/app/server.mjs:10723:22
at fn (./server/chunks/app/server.mjs:238:27)
at Object.callAsync (./server/node_modules/unctx/dist/index.mjs:49:19)
at callWithNuxt (./server/chunks/app/server.mjs:240:23)
at applyPlugin (./server/chunks/app/server.mjs:209:39)
at applyPlugins (./server/chunks/app/server.mjs:218:11)
at async createNuxtAppServer (./server/chunks/app/server.mjs:10843:7)
at async Object.renderToString (./server/node_modules/vue-bundle-renderer/dist/runtime.mjs:172:19)
at async ./server/chunks/handlers/renderer.mjs:367:21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant