react引用antd时,出现以下错误

TypeError: antd_es_form__WEBPACK_IMPORTED_MODULE_7__.default.create(…) is not a function

错误如图:

解决 TypeError: antd_es_form__WEBPACK_IMPORTED_MODULE_7__.default.create(...) is not a function

原因:

由于antd的版本导致

解决:

package.json文件下的antd版本号修改为3.26.14
解决 TypeError: antd_es_form__WEBPACK_IMPORTED_MODULE_7__.default.create(...) is not a function
运行 npm install,再运行npm start可解决

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2021-05-02
  • 2022-01-08
  • 2021-11-24
  • 2021-09-10
  • 2022-02-02
  • 2021-07-27
猜你喜欢
  • 2021-09-13
  • 2021-12-11
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2021-09-06
相关资源
相似解决方案