Module not found:Error:Can’t resolve 'rc-animate/lib/CSSMotionList' in '......'

  • 说明

React项目编译好之后,输入cnpm start有时候会报如下错误

  • 在package.json文件中加入如下代码用以指定版本
"resolutions": {
  "css-animation": "1.5.0",
  "rc-animate": "2.8.2"
},

 

  • dependencies中加入如下配置
"css-animation": "1.5.0",
"rc-animate": "2.8.2",

 

posted @ 2020-12-22 16:58  剑陈  阅读(231)  评论(0)    收藏  举报