nitrojs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.build
MIT License
6.16k stars 507 forks source link

cannot run nuxtjs after update nitro 2.10.0 #2833

Open dev-certogo opened 2 hours ago

dev-certogo commented 2 hours ago

Environment

Nitro 2.10.0

Reproduction

package.json use "nuxt": "^3.10.1", node 18.20.4

  1. Run npm install
  2. npm run build
  3. Run node .output/server/index.mjs

Describe the bug

Cannot start application as following error.

/prooject/frontend-nuxtjs/.output/server/chunks/nitro/nitro.mjs:8609 return base ? prefixStorage(storage, base) : storage; ^

ReferenceError: Cannot access 'storage' before initialization at useStorage (file:///project/frontend-nuxtjs/.output/server/chunks/nitro/nitro.mjs:8609:31) at file:///project/frontend-nuxtjs/.output/server/chunks/nitro/nitro.mjs:7850:19 at ModuleJob.run (node:internal/modules/esm/module_job:195:25) at async ModuleLoader.import (node:internal/modules/esm/loader:337:24) at async loadESM (node:internal/process/esm_loader:34:7) at async handleMainPromise (node:internal/modules/run_main:106:12)

Node.js v18.20.4

Additional context

No response

Logs

No response

marco-land commented 2 hours ago

I have the same issue with the error: ReferenceError: Cannot access '_sharedRuntimeConfig' before initialization