jiti
jiti copied to clipboard
Cannot start nuxt: Cannot redefine property: __internal__deprecationWarning
Environment
- Operating System: Linux
- Node Version: v20.6.0
- Nuxt Version: 3.7.1
- CLI Version: 3.7.3
- Nitro Version: 2.6.2
- Package Manager: [email protected]
- Builder: -
- User Config: modules, devtools, googleFonts
- Runtime Modules: @nuxthq/[email protected], @nuxtjs/[email protected], @nuxtjs/[email protected], @vueuse/motion/[email protected], @vueuse/[email protected]
- Build Modules: -
Reproduction
I can't reproduce it online. On the identical configuration in CodeSandbox, the error is not displayed because of Node.js version.
Describe the bug
I know that version 1.20.0 has just been released. I refreshed the lock file for pnpm in the project I work in and it turned out to be throwing errors.
ERROR Cannot start nuxt: Cannot redefine property: __internal__deprecationWarning 13:47:26
at Function.defineProperty (<anonymous>)
at Object.<anonymous> (node_modules/.pnpm/@[email protected]/node_modules/@babel/types/lib/index.js:66:8)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at Object.<anonymous> (node_modules/.pnpm/@[email protected]/node_modules/@babel/types/src/builders/validateNode.ts:3:1)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
Additional context
The bug appears to be in Node.js 20. In 18 works fine.
Logs
No response