Upgrade babel-loader to 8.2.1
See original GitHub issueDescribe the bug
npm start
is giving me the following error:
The react-scripts package provided by Create React App requires a dependency:
"babel-loader": "8.1.0"
npm ls babel-loader
returns the following output:
├─┬ @storybook/react@6.1.2
│ └─┬ @storybook/core@6.1.2
│ └── babel-loader@8.2.1
└─┬ react-scripts@4.0.0
└── babel-loader@8.1.0
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
babel-loader
Environment
current version of create-react-app: 4.0.0
running from /home/abhijeet/.npm/_npx/375491/lib/node_modules/create-react-app
System:
OS: Linux 5.4 Ubuntu 20.04.1 LTS (Focal Fossa)
CPU: (4) x64 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
Binaries:
Node: 14.15.1 - /usr/bin/node
Yarn: Not Found
npm: 6.14.8 - /usr/local/bin/npm
Browsers:
Chrome: 87.0.4280.66
Firefox: 83.0
npmPackages:
react: ^17.0.1 => 17.0.1 (16.14.0)
react-dom: ^17.0.1 => 17.0.1 (16.14.0)
react-scripts: ^4.0.0-next.98 => 4.0.0
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
Run npm start
in a CRA project after upgrading to @storybook/react@6.1.2
Expected behavior
No errors
Actual behavior
npm start
throws error and doesn’t run the application
Issue Analytics
- State:
- Created 3 years ago
- Reactions:30
- Comments:20 (1 by maintainers)
Top Results From Across the Web
babel-loader - npm
This package allows transpiling JavaScript files using Babel and webpack. Note: Issues with the output should be reported on the Babel ...
Read more >Babel-loader NPM
Check Babel-loader 8.2.5 package - Last release 8.2.5 with MIT licence at our NPM packages aggregator and search engine.
Read more >Upgrading to Babel-loader 8 from 7? What do I need to change?
All plugins are moved to @babel scope with Babel 7. To update your package.json, you need to rename all your plugins and presets...
Read more >how to update babel loader Code Example
Answers related to “how to update babel loader”. install babel · install babel core · install babel command line · npm i -D...
Read more >babel-loader conflicts with create-react-app version #5183
3. Remove "babel-loader" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems to me this issue would be resolved if we changed this line to
Does anyone see a problem with doing that?
can’t CRA just upgrade to the latest babel-loader?