Cannot install with npm
christianvari opened this issue · 7 comments
Hi, I got this error installing it with npm 7.11.2 and nodejs 12.16.1
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: frontend@0.1.0
npm ERR! Found: @craco/craco@6.1.0
npm ERR! node_modules/@craco/craco
npm ERR! @craco/craco@"6.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @craco/craco@"^5.3.0" from craco-plugin-scoped-css@1.1.0
npm ERR! node_modules/craco-plugin-scoped-css
npm ERR! craco-plugin-scoped-css@"1.1.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
I cannot reproduce this error. Is it something to do with your npm registry config? Or try to install @craco/craco@5.3.0
manually.
Well, the problem appears as there is a version conflict - you require craco@"^5.3.0"
, but @christianvari has craco@6.1.0
. Is there a reason you support only version 5 of craco?
Yes as @yaqwsx has pointed out, I'm using craco 6.1.0. Seems that only version 5 is supported. Can we extend this also to craco 6?
HI any update on this?
Experiencing the same issue. I'd really appreciate support for craco@6.x.x
as older versions break eslint in combination with create-react-app@4.x.x
(see release notes and the related PR).
Could you maybe provide some example/recipe of how to manually configure craco
to use scoped-css-loader
?
I think craco@5.x.x
is only required by craco-plugin-scoped-css
, so manually configuring craco
would probably circumvent this issue...
@gaoxiaoliangz Can you please update the package on npm also