按照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

相关文章:

  • 2021-08-20
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2021-05-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
相关资源
相似解决方案