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.

Can't install with craco@6

See original GitHub issue

Hi. I’m trying to install craco-less with craco@6 and react-scripts@4, but have an error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: @craco/craco@6.1.2
npm ERR! node_modules/@craco/craco
npm ERR!   @craco/craco@"^6.1.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @craco/craco@"^5.5.0" from craco-less@1.17.1
npm ERR! node_modules/craco-less
npm ERR!   craco-less@"*" 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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:16
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
sgtsquiggscommented, Jun 29, 2021

I have an update for craco-antd as well - I’ll open a PR soon

2reactions
ndbroadbentcommented, Jun 29, 2021

Thanks @sgtsquiggs! Merged!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install with npm #42 - gaoxiaoliangz/react-scoped-css
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...
Read more >
create react app - Craco - Could not resolve dependency error
When I run the following command npm install @craco/craco, I get unable to resolve dependency tree error. Below is the detail of the...
Read more >
Craco - npm
Install the latest version of the package from npm as a dev dependency: npm i -D @craco/craco. Create a CRACO configuration file in...
Read more >
You need to update your react-script package. As craco@6.4 ...
I could install it with CRA5 app, withouth ejecting. npm install @craco/craco@v7.0.0-alpha.0. react-pdf-renderer works fine with this version.
Read more >
Developers - Support Craco 6 - - Bountysource
craco-antd is coded to require craco ^5.5.0 and fails to install if using craco@6 npm ERR! ERESOLVE unable to resolve dependency tree npm ......
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