Skip to content

Upgrade babel-loader to 8.2.1 #10123

@cseas

Description

@cseas

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions