babel / babel

🐠 Babel is a compiler for writing next generation JavaScript.
https://babel.dev
MIT License
43.22k stars 5.64k forks source link

[Bug]: When I pull the Babel source code and execute the make bootstrap command, a syntax error is reported #16492

Closed moonsky-all closed 5 months ago

moonsky-all commented 5 months ago

💻

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

When I pull the Babel source code and execute the make bootstrap command, a syntax error is reported.

image

I have checked my local environmental information, as follows

image

Configuration file name

No response

Configuration

No response

Current and expected behavior

I hope it can be compiled locally

Environment

Possible solution

No response

Additional context

No response

babel-bot commented 5 months ago

Hey @moonsky-all! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

liuxingbaoyu commented 5 months ago

Can you try node v20.13.1?

JLHwung commented 5 months ago

Yes to build Babel one will need node.js 20.10.0 or above. We should update the node requirement here as well

https://github.com/babel/babel/blob/6e14020b927b60a0cb8c152957e340117dbc0164/CONTRIBUTING.md?plain=1#L40

moonsky-all commented 5 months ago

Yes when I switch to node.js 20.13, I successfully compiled the source code, thank you