解決 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可解決
相關文章
相關標籤/搜索