N
Nuxt3mo ago
erajasekar

The nuxt build is failing on my vercel recently with error [unhandled] [500] Element is not defined

[success] Server built in 5250ms
[info] [nitro] Initializing prerenderer
[info] [nitro] Prerendering 8 initial routes with crawler
[error] [nuxt] [request error] [unhandled] [500] Element is not defined
at ./.nuxt/prerender/chunks/build/server.mjs:1964:30
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)
at async ./.nuxt/prerender/chunks/_/renderer.mjs:141:24

This is using nuxt version 3.11.2.

The build was working fine few months ago on nuxt version 3.4.3 .
[success] Server built in 5250ms
[info] [nitro] Initializing prerenderer
[info] [nitro] Prerendering 8 initial routes with crawler
[error] [nuxt] [request error] [unhandled] [500] Element is not defined
at ./.nuxt/prerender/chunks/build/server.mjs:1964:30
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)
at async ./.nuxt/prerender/chunks/_/renderer.mjs:141:24

This is using nuxt version 3.11.2.

The build was working fine few months ago on nuxt version 3.4.3 .
Looks like some recent change on latest version is causing this error. I would appreciate any pointers on resolving this error. Thank you!
0 Replies
No replies yetBe the first to reply to this messageJoin