question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade babel-loader to 8.2.1

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Reactions:30
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

27reactions
tylerthehaascommented, Apr 29, 2021

It seems to me this issue would be resolved if we changed this line to

"babel-loader": "^8.2.2"

Does anyone see a problem with doing that?

18reactions
kofcommented, Aug 26, 2021

can’t CRA just upgrade to the latest babel-loader?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found