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

🐛 Vite 打包时报错 :"ColorPicker" is not exported by "node_modules/antd/es/index.js", imported by "node_modules/@ant-design/pro-field/es/components/ColorPicker/index.js"

Open zhang0ZGC opened this issue 1 year ago • 2 comments

🐛 bug 描述

Vite 打包时报错 :"ColorPicker" is not exported by "node_modules/antd/es/index.js", imported by "node_modules/@ant-design/pro-field/es/components/ColorPicker/index.js"

📷 复现步骤

🏞 期望结果

能够正常打包,或者是否能通过配置忽略错误

💻 复现代码

© 版本信息

  • ProComponents 版本: 2.6.49
  • umi 版本 无
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

image

zhang0ZGC avatar Feb 02 '24 03:02 zhang0ZGC

用的 antd 4 吧 ,alias 这个东西到一个空上去呢,或者升级 antd 5

ONLY-yours avatar Feb 05 '24 02:02 ONLY-yours

用的 antd 4 吧 ,alias 这个东西到一个空上去呢,或者升级 antd 5

是的, 我先把依赖版本降级到 2.6.43 了

zhang0ZGC avatar Feb 07 '24 01:02 zhang0ZGC