facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.52k stars 26.78k forks source link

Update @babel/core dependency from 7.12.3 to ^7.13.0 #11235

Open efillman opened 3 years ago

efillman commented 3 years ago

When using the eject option there is now a npm install error with babel core being less than 7.13.0 caused by @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining

Error log below. Could not resolve dependency: peer @babel/core@"^7.13.0" from @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.14.5 node_modules/@babel/preset-env/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@"^7.14.5" from @babel/preset-env@7.14.8 node_modules/@babel/preset-env @babel/preset-env@"^7.12.1" from @svgr/webpack@5.5.0 node_modules/@svgr/webpack @svgr/webpack@"5.5.0" from the root project @svgr/webpack@"5.5.0" from react-scripts@4.0.3 node_modules/react-scripts @babel/preset-env@"^7.8.4" from workbox-build@5.1.4 node_modules/workbox-build workbox-build@"^5.1.4" from workbox-webpack-plugin@5.1.4 node_modules/workbox-webpack-plugin workbox-webpack-plugin@"5.1.4" from the root project workbox-webpack-plugin@"5.1.4" from react-scripts@4.0.3 node_modules/react-scripts

Fix the upstream dependency conflict, or retry this command with --force, or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

gauravshah27 commented 3 years ago

I have been seeing this same issue when trying to work with npm 7. we also noticed things like react-scripts is using webpack 4 and also the fact that @babel/core are a few minor versions behind. Is there an update in the works ?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.