请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

craco-less的报错

今天启动项目发现一个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:

正在回答 回答被采纳积分+3

1回答

提问者 慕妹2225610 2021-12-26 17:15:06

试了半天,似乎是 cnpm 的锅,虽然安装依赖成功,但是运行时候报错。之后分别重新试了 npm install 和 yarn 去安装依赖,都可以正常运行。npm 有时候也会失败,使用 yarn 就比较稳定。具体原因就不清楚了

0 回复 有任何疑惑可以回复我~
  • Nolan #1
    尝试把课程附带的源码yarn.lock复制到你的工程里,然后重新安装node_modules
    回复 有任何疑惑可以回复我~ 2022-06-14 23:32:36
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号