Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with React Scripts #23

Open
TimoPurzner opened this issue May 16, 2019 · 4 comments
Open

Bug with React Scripts #23

TimoPurzner opened this issue May 16, 2019 · 4 comments

Comments

@TimoPurzner
Copy link

If I add this with
yarn add docz-plugin-css --dev

I get the error:

The react-scripts package provided by Create React App requires a dependency:

"babel-loader": "8.0.5"

and my App wont start anymore…

so if I take a look with npm ls babel-loader

├─┬ docz@1.2.0
│ └─┬ docz-core@1.2.0
│ └── babel-loader@8.0.6
├─┬ docz-plugin-css@0.11.0
│ └─┬ docz-core@0.11.2
│ └── babel-loader@8.0.6 deduped
└─┬ react-scripts@3.0.1
└── babel-loader@8.0.5

I see the docz AND the docz-plugin-css uses babel-loader@8.0.6 but the error appers only after adding the css plugin

@TimoPurzner TimoPurzner changed the title Bug with React native Scripts Bug with React Scripts May 16, 2019
@GabeDuarteM
Copy link

GabeDuarteM commented May 25, 2019

I'm also using yarn, so I got to solve this by adding the following to package.json:

  "resolutions": {
      "docz*/**/babel-loader": "8.0.5"
  },

Not the prettiest solution, but works as a workaround.
Probably will also have to update this every time react-scripts updates babel-loader on their side...

@joohncruz
Copy link

the same happens with:

The react-scripts package provided by Create React App requires a dependency:

"webpack": "4.29.6"

With that I added another line:

  "resolutions": {
    "docz*/**/babel-loader": "8.0.5",
    "docz*/**/webpack": "4.29.6"
  },

@lumcory
Copy link

lumcory commented Aug 20, 2019

is there a workaround for npm?

@TimoPurzner
Copy link
Author

is there a workaround for npm?

@lumcory should work with npm too. Did not test it jet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants