Endre | Blackr4t
Endre | Blackr4t
NNuxt
Created by Endre | Blackr4t on 8/16/2024 in #❓・help
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)
14 replies
NNuxt
Created by Endre | Blackr4t on 8/16/2024 in #❓・help
Tests failing when following docs
Hi peeps, I'm trying to use the nuxtjstest setup mentioned in the docs https://nuxt.com/docs/getting tui:test: tui:test: FAIL tests/login-page.spec.ts > Basic login page test tui:test: TypeError: existsSync is not a function tui:test: ❯ isNuxtApp ../../nodemodules/.pnpm/@[email protected]@[email protected]_@[email protected][email protected]_typesc_roe6si4xda7bgoslnpgppf7gue/node_modules/@nuxt/test-utils/dist/shared/test-utils.BZS9cHDP.mjs:71:32 tui:test: 69| options.rootDir, tui:test: 70| resolve(options.testDir, options.fixture), tui:test: 71| process.cwd() tui:test: | ^ tui:test: 72| ]; tui:test: 73| for (const dir of dirs) { tui:test: ❯ resolveRootDir ../../nodemodules/.pnpm/@[email protected]@[email protected]_@[email protected][email protected]_typesc_roe6si4xda7bgoslnpgppf7gue/node_modules/@nuxt/test-utils/dist/shared/test-utils.BZS9cHDP.mjs:81:16 tui:test: ❯ loadFixture ../../nodemodules/.pnpm/@[email protected]@[email protected]_@[email protected][email protected]_typesc_roe6si4xda7bgoslnpgppf7gue/node_modules/@nuxt/test-utils/dist/shared/test-utils.BZS9cHDP.mjs:89:25 tui:test: ❯ setup2 ../../nodemodules/.pnpm/@[email protected]@[email protected]_@[email protected][email protected]_typesc_roe6si4xda7bgoslnpgppf7gue/node_modules/@nuxt/test-utils/dist/shared/test-utils.BZS9cHDP.mjs:180:13
1 replies
NNuxt
Created by Endre | Blackr4t on 8/12/2024 in #❓・help
Problem running built app, doesn't log what is wrong?
So y'all I got a app that works fine in pnpm dev but then I node it as production mode / in a container using node .output/server/index.mjs I get
[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)
What is a way to debug a issue like this?
1 replies