react中使用antd做样式按需引入报The “injectBabelPlugin“ helper has been deprecated as of v2.0“错误解决方法。
首先安装antd
npm install antd --save
然后按需引入Ant-Design插件需要安装react-app-rewired
npm install react-app-rewired -D
修改package.json文件中的"script": { } 下的代码,将里面“react-scripts”全部修改为“react-app-rewired”
"scripts": {
"start": "react-app-rewired start",
"build": "r
原创
2020-08-17 14:15:04 ·
362 阅读 ·
0 评论