Cannot start nuxt: Cannot redefine property: __internal__deprecationWarning
oritwoen opened this issue · 0 comments
oritwoen commented
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: pnpm@8.7.4
- Builder: -
- User Config: modules, devtools, googleFonts
- Runtime Modules: @nuxthq/ui@2.7.0, @nuxtjs/fontaine@0.4.1, @nuxtjs/google-fonts@3.0.2, @vueuse/motion/nuxt@2.0.0, @vueuse/nuxt@10.4.1
- 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/@babel+types@7.22.15/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/@babel+types@7.22.15/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