Reputation: 2657
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react-scripts
npm ERR! react-scripts@"^5.0.0" from the root project
npm ERR! peer react-scripts@"^5.0.0" from [email protected]
npm ERR! node_modules/craco-esbuild
npm ERR! dev craco-esbuild@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-scripts@"^4.0.0" from @craco/[email protected]
npm ERR! node_modules/@craco/craco
npm ERR! dev @craco/craco@"6.4.3" from the root project
npm ERR! peer @craco/craco@"^6.0.0" from [email protected]
npm ERR! node_modules/craco-esbuild
npm ERR! dev craco-esbuild@"*" from the root project
i dont get it i already have the dependency 5.0.0 in my project craco wants 4.0.0 but its saying it failed
Upvotes: 3
Views: 2414
Reputation: 1
it works for me
"@craco/craco": "^7.1.0",
"craco-less": "^2.1.0-alpha.0"
"react-scripts": "5.0.1"
Upvotes: 0
Reputation: 54
The issue is a result of CRA 5 update - meaning that you're using react version 5.0.0 vs Craco requires react 4.0.0.
The Craco team is working on this issue - You may check this for further details
Craco Github: https://github.com/gsoft-inc/craco/issues/378
Upvotes: 1