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

  • 说明

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

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

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

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

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

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

 

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

上一篇:eclipse中动态web项目快捷方式设置


下一篇:使用反射和HttpServlet类制作一个简单的web层框架