N
Nuxtβ€’10mo ago
Gawel91

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?
No description
5 Replies
zsilbi
zsilbiβ€’10mo ago
Nuxt
Nuxt Configuration
Discover all the options you can use in your nuxt.config.ts file.
Gawel91
Gawel91OPβ€’10mo ago
It doesn't work, I still have the same error showing without much details
Gawel91
Gawel91OPβ€’10mo ago
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
No description
zsilbi
zsilbiβ€’10mo ago
try running node with the --inspect flag and you can use the node chrome inspector to watch what's happening
Gawel91
Gawel91OPβ€’10mo ago
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, ...
Want results from more Discord servers?
Add your server