jiti icon indicating copy to clipboard operation
jiti copied to clipboard

Cannot start nuxt: Cannot redefine property: __internal__deprecationWarning

Open oritwoen opened this issue 2 years ago • 0 comments

Environment



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

oritwoen avatar Sep 07 '23 12:09 oritwoen