pro-components
pro-components copied to clipboard
🐛[BUG]ProTable在大于2.7.0版本时编译文件会报React is not define的错误
🐛 bug 描述
ProTable在大于2.7.0版本时编译文件会报React is not define的错误,在本地开发模式正常。
📷 复现步骤
"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" }
以下的 Issues 可能会帮助到你 / The following issues may help you
- [#8094][ProFormColorPicker在ModalForm里作为ProTable的Action构建后出错显示require is not defined🐛[BUG]][61%]
+1 蹲楼等解决方案
你可以尝试:npm i @ant-design/[email protected],官方npm版本没更新,安装的2.7.2版本有问题