500 error when building Nuxt

Nuxt ? >v3.10.0 i'm getting a 500 error when building it, but it's working fine on dev mode (pnpm dev) !!
No description
3 Replies
Mohamed Amine Fh
Mohamed Amine FhOP9mo ago
logs =>
[nuxt] [request error] [unhandled] [500] Cannot find module '/home/medaminefh/Desktop/workspace/github.com/alx-projects/E-commerce_nuxt_ts/.output/server/node_modules/vue/server-renderer/index.mjs' imported from /home/medaminefh/Desktop/workspace/github.com/alx-projects/E-commerce_nuxt_ts/.output/server/chunks/routes/renderer.mjs
at finalizeResolution (node:internal/modules/esm/resolve:264:11)
at moduleResolve (node:internal/modules/esm/resolve:917:10)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
[nuxt] [request error] [unhandled] [500] Cannot find module '/home/medaminefh/Desktop/workspace/github.com/alx-projects/E-commerce_nuxt_ts/.output/server/node_modules/vue/server-renderer/index.mjs' imported from /home/medaminefh/Desktop/workspace/github.com/alx-projects/E-commerce_nuxt_ts/.output/server/chunks/routes/renderer.mjs
at finalizeResolution (node:internal/modules/esm/resolve:264:11)
at moduleResolve (node:internal/modules/esm/resolve:917:10)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link
[nuxt] [request error] [unhandled] [500] Cannot find module '/home/medaminefh/Desktop/workspace/github.com/alx-projects/E-commerce_nuxt_ts/.output/server/node_modules/vue/server-renderer/index.mjs' imported from /home/medaminefh/Desktop/workspace/github.com/alx-projects/E-commerce_nuxt_ts/.output/server/chunks/routes/renderer.mjs
at finalizeResolution (node:internal/modules/esm/resolve:264:11)
at moduleResolve (node:internal/modules/esm/resolve:917:10)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
[nuxt] [request error] [unhandled] [500] Cannot find module '/home/medaminefh/Desktop/workspace/github.com/alx-projects/E-commerce_nuxt_ts/.output/server/node_modules/vue/server-renderer/index.mjs' imported from /home/medaminefh/Desktop/workspace/github.com/alx-projects/E-commerce_nuxt_ts/.output/server/chunks/routes/renderer.mjs
at finalizeResolution (node:internal/modules/esm/resolve:264:11)
at moduleResolve (node:internal/modules/esm/resolve:917:10)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link
Single
Single9mo ago
I can only guess at this point but i assume die uppercase E might cause the issue. Double check your import regarding that package.
Mohamed Amine Fh
Mohamed Amine FhOP9mo ago
The issue is the dependencies versions, when i updated Nuxt & Nuxt ui i forgot to update Vue as well, so the newer versions of Nuxt uses some functions that are exists in the newer version of Vue
Want results from more Discord servers?
Add your server