Error only in production
I have an error only when I run
node .output/server/index.mjs
after a build, in hybrid SSR.
I don't have any error in nuxi dev or even with nuxi preview
π€·ββοΈ
How can I debug this?5 Replies
https://nuxt.com/docs/api/nuxt-config#minimize
try setting this to false
In fact, I have the error in the console now (I was looking in the Chrome devtools console previously), but it doesn't help me much
try running node with the --inspect flag and you can use the node chrome inspector to watch what's happening
Sorry I forgot to update this post but by searching this vague error I came across this issue: https://github.com/nuxt/nuxt/issues/22249
And basically the
node .output/server/index.mjs
command doesn't work in localhost but it works on the staging server (no bugs there!)GitHub
H3error at Module.createError when fetching data using useAsyncData...
Environment Operating System: Linux Node Version: v18.16.0 Nuxt Version: 3.6.5 Nitro Version: 2.5.2 Package Manager: [email protected] Builder: vite User Config: app, vite, runtimeConfig, css, modules, ...