pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🐛[BUG]ProTable在大于2.7.0版本时编译文件会报React is not define的错误

Open sevenliu1896 opened this issue 10 months ago • 3 comments

🐛 bug 描述

ProTable在大于2.7.0版本时编译文件会报React is not define的错误,在本地开发模式正常。

企业微信截图_e1a60fbd-ce37-4b69-a725-817ef6719d4e

📷 复现步骤

"dependencies": { "@ant-design/charts": "^1.3.6", "@ant-design/icons": "^4.8.0", "@ant-design/pro-card": "^2.5.26", "@ant-design/pro-components": "2.7.0", "@ant-design/pro-form": "^2.23.0", "@ant-design/pro-layout": "^7.17.15", "@ant-design/use-emotion-css": "1.0.4", "antd": "^5.2.2" }

sevenliu1896 avatar Apr 19 '24 10:04 sevenliu1896

以下的 Issues 可能会帮助到你 / The following issues may help you

  • [#8094][ProFormColorPicker在ModalForm里作为ProTable的Action构建后出错显示require is not defined🐛[BUG]][61%]

github-actions[bot] avatar Apr 19 '24 10:04 github-actions[bot]

+1 蹲楼等解决方案

itsatan avatar Apr 19 '24 10:04 itsatan

你可以尝试:npm i @ant-design/[email protected],官方npm版本没更新,安装的2.7.2版本有问题

llr101 avatar May 11 '24 11:05 llr101