今天启动项目发现一个craco-less的报错,删掉nodeModules和使用yarn安装都试过,解决不了。
报错如下:
This error probably occurred because you updated react-scripts or craco. Please try updating craco-less to the latest version:
$ yarn upgrade craco-less
Or:
$ npm update craco-less
If that doesn’t work, craco-less needs to be fixed to support the latest version.
Please check to see if there’s already an issue in the DocSpring/craco-less repo:
If not, please open an issue and we’ll take a look. (Or you can send a PR!)
You might also want to look for related issues in the craco and create-react-app repos:
解锁 React17 高阶用法,轻松应对大型复杂长周期项目
了解课程