-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Node.js 20.6 bug] @babel/core
does not work in node v20.6
#15927
Comments
This is an upstream problem, and we may be difficult to solve.🤦♂️ |
Error message in text form to help with search (the screenshot in the original post is not properly indexed, please avoid screenshots).
|
Error `Object.defineProperty(exports, "File", {` babel/babel#15927
Error `Object.defineProperty(exports, "File", {` babel/babel#15927
Error `Object.defineProperty(exports, "File", {` babel/babel#15927
Error `Object.defineProperty(exports, "File", {` babel/babel#15927
Error `Object.defineProperty(exports, "File", {` babel/babel#15927
there are apparently some breaking issues in 20.6 with babel babel/babel#15927 Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* root: lock node to 20.5 there are apparently some breaking issues in 20.6 with babel babel/babel#15927 Signed-off-by: Jens Langhammer <jens@goauthentik.io> * use same version of setup-node everywhere Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
At least until babel/babel#15927 is fixed Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
* root: lock node to 20.5 there are apparently some breaking issues in 20.6 with babel babel/babel#15927 Signed-off-by: Jens Langhammer <jens@goauthentik.io> * use same version of setup-node everywhere Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> # Conflicts: # .github/workflows/ci-web.yml # .github/workflows/ci-website.yml
It looks like CI is failing due to an issue with Babel.js conflicting with Node 20.6: babel/babel#15927 vitejs/vite#14299 For now, let's try pinning Node 20.x to 20.5 until the issue gets fixed in Babel. Comparable `typespec-azure` repo PR: https://github.com/Azure/typespec-azure/pull/3502 Issue https://github.com/Azure/typespec-azure/issues/3504 tracks the work to un-pin the Node version.
Error `Object.defineProperty(exports, "File", {` babel/babel#15927
@babel/core
does not work in node v20.6@babel/core
does not work in node v20.6
Facing the same problem: [plugin:vite:react-babel] Cannot redefine property: File |
Update Node.js, they fixed the bug. |
babel + nodejs 20.6.0 のバグを回避するために、バージョンを更新 babel/babel#15927
Hello, I have the same issue. I´m using Node 20.11.0 [vite] Internal server error: Cannot redefine property: File |
@MaxiCattaneoCvetic check your lock file, likely having an old version of babel |
💻
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
/
Configuration file name
No response
Configuration
No response
Current and expected behavior
Environment
node v20.6
Possible solution
No response
Additional context
https://github.com/babel/babel/actions/runs/6069179792/job/16493426064?pr=15922
The text was updated successfully, but these errors were encountered: