码迷,mamicode.com
首页 > 移动开发 > 详细

antd中按需加载使用react-app-rewired报错

时间:2019-01-12 15:26:31      阅读:352      评论:0      收藏:0      [点我收藏+]

标签:ant   net   weixin   tps   解决   script   方法   add   article   

【描述】

按照antd官网步骤 https://ant.design/docs/react/use-with-create-react-app-cn

最后yarn start会报错

【解决方法】

原因是react-scripts 升级到 2.1.2 以后破坏了 react-app-rewired

解决方法,对react-scripts进行降级处理

yarn add react-app-rewired@2.0.2-next.0

 

参考:

https://blog.csdn.net/weixin_39836173/article/details/86110011

 

https://www.cnblogs.com/mmykdbc/p/10255814.html

antd中按需加载使用react-app-rewired报错

标签:ant   net   weixin   tps   解决   script   方法   add   article   

原文地址:https://www.cnblogs.com/remly/p/10259489.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!