Running built app fails

I build my app using pnpm build and then launch it like in the docs but it fails when accessing it, is there a smart way to debug this?
node .output/server/index.mjs
Listening on http://[::]:3000
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'toString')
at ./.output/server/chunks/build/server.mjs:13182:98
at ./.output/server/chunks/build/server.mjs:13649:3
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'toString')
at ./.output/server/chunks/build/server.mjs:13182:98
at ./.output/server/chunks/build/server.mjs:13649:3
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'toString')
at ./.output/server/chunks/build/server.mjs:13182:98
at ./.output/server/chunks/build/server.mjs:13649:3
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'toString')
at ./.output/server/chunks/build/server.mjs:13182:98
at ./.output/server/chunks/build/server.mjs:13649:3
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
node .output/server/index.mjs
Listening on http://[::]:3000
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'toString')
at ./.output/server/chunks/build/server.mjs:13182:98
at ./.output/server/chunks/build/server.mjs:13649:3
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'toString')
at ./.output/server/chunks/build/server.mjs:13182:98
at ./.output/server/chunks/build/server.mjs:13649:3
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'toString')
at ./.output/server/chunks/build/server.mjs:13182:98
at ./.output/server/chunks/build/server.mjs:13649:3
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'toString')
at ./.output/server/chunks/build/server.mjs:13182:98
at ./.output/server/chunks/build/server.mjs:13649:3
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
8 Replies
Sefa Bułak
Sefa Bułak5mo ago
Hi @Endre | Blackr4t , Create Node modules using npm and run them with npm. and try this npx nuxi cleanup pnpm store prune --force rm -rf ~/.pnpm-store npm cache clean -f yarn cache clean rm -rf node_modules
Endre | Blackr4t
Endre | Blackr4tOP5mo ago
should one not use pnpm ? 🤔
Sefa Bułak
Sefa Bułak5mo ago
no I had this problem too
Endre | Blackr4t
Endre | Blackr4tOP5mo ago
sounds like a bug imho
Sefa Bułak
Sefa Bułak5mo ago
Did you try what I said?
Endre | Blackr4t
Endre | Blackr4tOP5mo ago
I will tomororw 🙂
Sefa Bułak
Sefa Bułak5mo ago
ok After installing it with npm, you can also run it with pnpm.
Endre | Blackr4t
Endre | Blackr4tOP5mo ago
That didn't work because npm doesn't like workspaces 😄
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:*

npm ERR! A complete log of this run can be found in: /home/ekarlso/.npm/_logs/2024-08-17T10_45_40_912Z-debug-0.log
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:*

npm ERR! A complete log of this run can be found in: /home/ekarlso/.npm/_logs/2024-08-17T10_45_40_912Z-debug-0.log
I guess I'm doomed then. But surely I can't be the only one using Turbo and PNPM ? 🤔
Want results from more Discord servers?
Add your server