DocSpring / craco-antd

A craco plugin to use Ant Design with create-react-app
MIT License
234 stars 49 forks source link

Support Craco 6 #59

Closed IronSean closed 2 years ago

IronSean commented 3 years ago

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 ERR!
npm ERR! While resolving: dashboard@0.1.0
npm ERR! Found: @craco/craco@6.1.1
npm ERR! node_modules/@craco/craco
npm ERR!   @craco/craco@"6.1.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @craco/craco@"^5.5.0" from craco-antd@1.19.0
npm ERR! node_modules/craco-antd
npm ERR!   craco-antd@"1.19.0" from the root project
whossein commented 3 years ago

I installed the craco-less first and then the @craco/craco and worked

mirages commented 2 years ago

How to resolve this problem?