Angius
Angius
Explore posts from servers
NNuxt
Created by Angius on 11/13/2024 in #❓・help
RollupError: [plugin impound] This module cannot be imported in server runtime.
$ nuxt dev
Nuxt 3.14.159 with Nitro 2.10.4 21:35:12
21:35:13
➜ Local: http://localhost:3000/
➜ Network: use --host to expose

➜ DevTools: press Shift + Alt + D in the browser (v1.6.0) 21:35:21

✔ Vite client built in 613ms 21:35:25
✔ Vite server built in 2715ms 21:35:27

[nitro 21:35:28] ERROR RollupError: [plugin impound] This module cannot be imported in server runtime. [importing node_modules/nitropack/node_modules/unenv/runtime/fetch/index.mjs from node_modules/nitropack/dist/runtime/internal/app.mjs]


undefined

✔ Nuxt Nitro server built in 579 ms
$ nuxt dev
Nuxt 3.14.159 with Nitro 2.10.4 21:35:12
21:35:13
➜ Local: http://localhost:3000/
➜ Network: use --host to expose

➜ DevTools: press Shift + Alt + D in the browser (v1.6.0) 21:35:21

✔ Vite client built in 613ms 21:35:25
✔ Vite server built in 2715ms 21:35:27

[nitro 21:35:28] ERROR RollupError: [plugin impound] This module cannot be imported in server runtime. [importing node_modules/nitropack/node_modules/unenv/runtime/fetch/index.mjs from node_modules/nitropack/dist/runtime/internal/app.mjs]


undefined

✔ Nuxt Nitro server built in 579 ms
My dependencies:
"dependencies": {
"@heroicons/vue": "^2.1.5",
"@nuxt/fonts": "^0.10.2",
"@nuxt/image": "^1.8.0",
"@nuxt/kit": "^3.14.159",
"@pinia/nuxt": "^0.7.0",
"es-toolkit": "^1.17.0",
"marked": "^15.0.0",
"nuxt": "^3.14.159",
"nuxt-svgo": "^4.0.5",
"sass": "^1.78.0",
"vue": "^3.5.4",
"vue-router": "^4.4.4",
"zod": "^3.23.8"
},
"dependencies": {
"@heroicons/vue": "^2.1.5",
"@nuxt/fonts": "^0.10.2",
"@nuxt/image": "^1.8.0",
"@nuxt/kit": "^3.14.159",
"@pinia/nuxt": "^0.7.0",
"es-toolkit": "^1.17.0",
"marked": "^15.0.0",
"nuxt": "^3.14.159",
"nuxt-svgo": "^4.0.5",
"sass": "^1.78.0",
"vue": "^3.5.4",
"vue-router": "^4.4.4",
"zod": "^3.23.8"
},
7 replies
NNuxt
Created by Angius on 7/8/2024 in #❓・help
Error 500 during prerendering, only on Cloudflare Pages
nuxt generate generates the site perfectly well on my machine. The same command used to build the site on Cloudflare Pages throws this at me:
18:27:09.253 [log] [nitro]
18:27:09.254 Errors prerendering:
18:27:09.254 [log] [nitro] ├─ /about (365ms)
18:27:09.254 │ ├── Error: [500]
18:27:09.254 │ └── Linked from /
18:27:09.254 [log] [nitro]
18:27:09.255 [error] Exiting due to prerender errors.
18:27:09.255 at prerender (node_modules/nitropack/dist/chunks/prerender.mjs:218:11)
18:27:09.255 at async node_modules/nuxt/dist/index.mjs:3540:7
18:27:09.255 at async build (node_modules/nuxt/dist/index.mjs:5333:5)
18:27:09.255 at async Object.run (node_modules/nuxi/dist/chunks/build.mjs:94:5)
18:27:09.256 at async Object.run (node_modules/nuxi/dist/chunks/generate.mjs:55:5)
18:27:09.256 at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
18:27:09.256 at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
18:27:09.256 at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)
18:27:09.256
18:27:09.256 [error] Exiting due to prerender errors.
18:27:09.305 error: script "generate" exited with code 1
18:27:09.310 Failed: Error while executing user command. Exited with error code: 1
18:27:09.322 Failed: build command exited with code: 1
18:27:11.109 Failed: error occurred while running build command
18:27:09.253 [log] [nitro]
18:27:09.254 Errors prerendering:
18:27:09.254 [log] [nitro] ├─ /about (365ms)
18:27:09.254 │ ├── Error: [500]
18:27:09.254 │ └── Linked from /
18:27:09.254 [log] [nitro]
18:27:09.255 [error] Exiting due to prerender errors.
18:27:09.255 at prerender (node_modules/nitropack/dist/chunks/prerender.mjs:218:11)
18:27:09.255 at async node_modules/nuxt/dist/index.mjs:3540:7
18:27:09.255 at async build (node_modules/nuxt/dist/index.mjs:5333:5)
18:27:09.255 at async Object.run (node_modules/nuxi/dist/chunks/build.mjs:94:5)
18:27:09.256 at async Object.run (node_modules/nuxi/dist/chunks/generate.mjs:55:5)
18:27:09.256 at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
18:27:09.256 at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
18:27:09.256 at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)
18:27:09.256
18:27:09.256 [error] Exiting due to prerender errors.
18:27:09.305 error: script "generate" exited with code 1
18:27:09.310 Failed: Error while executing user command. Exited with error code: 1
18:27:09.322 Failed: build command exited with code: 1
18:27:11.109 Failed: error occurred while running build command
1 replies