解决 TypeError: antd_es_form__WEBPACK_IMPORTED_MODULE_7__.default.create(...) is not a function
react引用antd时,出现以下错误
TypeError: antd_es_form__WEBPACK_IMPORTED_MODULE_7__.default.create(…) is not a function
错误如图:
原因:
由于antd的版本导致
解决:
package.json文件下的antd版本号修改为3.26.14
运行 npm install,再运行npm start可解...
原创
2020-04-05 17:32:29 ·
9761 阅读 ·
1 评论