nuxt3-apollo-module
nuxt3-apollo-module copied to clipboard
[nuxt] [request error] [unhandled] [500] __DEV__ is not defined
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