babel: Create react app is broken because of 7.9.0
https://github.com/facebook/create-react-app/issues/8680
Describe the bug
Running npm run build will fail on any project, even on a vanilla app created with create-react-app will fail with the following error:
Error: [BABEL] /Users/<username>/Projects/my-app/src/index.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "/Users/<username>/Projects/my-app/node_modules/babel-preset-react-app/index.js$0")
at Array.map (<anonymous>)
at Generator.next (<anonymous>)
at Generator.next (<anonymous>)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-app@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-app@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 25
- Comments: 19 (8 by maintainers)
Commits related to this issue
- Add a fix as per https://github.com/babel/babel/issues/11292 to fix compile errors — committed to infor-design/enterprise-ng by tmcconechy 4 years ago
Try adding
"@babel/compat-data": "~7.8.0"to your"devDependencies", deleting"@babel/compat-data"frompackage-lock.jsonand runningnpm install.If you are using yarn, this is better: https://github.com/facebook/create-react-app/issues/8680#issuecomment-601851525
@Lukavyi please read my comment within the thread: https://github.com/facebook/create-react-app/issues/8680#issuecomment-601820935
Lockfiles were introduced to help mitigate the problem of shifting dependencies. Highly recommend using one!
My pipelines broke, I have the same error. Does someone have a solution for this bug?
@jblevins1991 We fixed it in 7.8.7.
If you depend on open source software you are not helping to maintain and you are not supporting in any way (neither with human time nor financially), you are not entitled to complain about what the maintainers are doing. I assure you that we are trying to do our best. Why is this such a hard concept in the tech industry.
Modern development environment with babel, react and other dependencies will create havoc all the times. Changes break suddenly and errors are not clear.
Thank you!!
@wandersoncesar It’s unexpected that it broke angular 🤔 Avoid
@babel/preset-envv7.8.0-7.8.6 which are broken should be enough for you.Hey @Lukavyi! 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."