docz-plugin-css
docz-plugin-css copied to clipboard
Bug with React Scripts
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
├─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ └─┬ [email protected] │ └── [email protected] deduped └─┬ [email protected] └── [email protected]
I see the docz AND the docz-plugin-css uses [email protected] but the error appers only after adding the css plugin
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...
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"
},
is there a workaround for npm?
is there a workaround for npm?
@lumcory should work with npm too. Did not test it jet