nuxt: The latest version of nuxt3 deployment server ran an error: This page is temporarily unavailable

Environment

Nodejs:v18.1.0

{
"devDependencies": {
    "@nuxt/devtools": "latest",
    "@types/node": "^20.8.9",
    "nuxt": "^3.8.0",
    "typescript": "^5.2.2",
    "vue": "^3.3.7",
    "vue-router": "^4.2.5"
  },
  "dependencies": {
    "@nuxt/ui": "^2.9.0",
    "ohash": "^1.1.3",
    "sass": "^1.69.4"
  }
}

Reproduction

https://stackblitz.com/edit/github-nf5wwj?file=nuxt.config.ts

Describe the bug

Can display data normally in the development environment.Prompt that this page is temporarily unavailable after deploying the server

Additional context

No response

Logs

No response

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Comments: 23 (5 by maintainers)

Most upvoted comments

@danielroe I executed the command pnpm why Vue and found that the versions of Vue are consistent, all versions are 3.3.7.

yes, exactly! Or even because your package manager keeps a second version around. you can try pnpm why vue or npm why vue.

@dl-ias Your issue seems to be different - maybe you also have vue 2 installed in your project - or possibly multiple versions of vue 3?

No. Any vue2 in project. And actually my problem was solved by reupgrade nuxt with pnpx nuxi upgrade --force

Same issue with Nuxt 3.8.1

2023-11-08T14:32:09: [nuxt] [request error] [unhandled] [500] Cannot find module '/data/apps/site-folder/trunk/.output/server/node_modules/vue/server-renderer/index.mjs' imported from /data/apps/site-folder/trunk/.output/server/chunks/handlers/renderer.mjs
  at new NodeError (node:internal/errors:393:5)
  at finalizeResolution (node:internal/modules/esm/resolve:305:11)
  at moduleResolve (node:internal/modules/esm/resolve:866:10)
  at defaultResolve (node:internal/modules/esm/resolve:1074:11)
  at nextResolve (node:internal/modules/esm/loader:163:28)
  at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:425:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
  at link (node:internal/modules/esm/module_job:75:36)