You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vite5.x build项目 <Card>等组件控制台会警告” contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues“
#46022
Closed
chengshaohui opened this issue
Nov 22, 2023
· 1 comment
· Fixed by #46024
使用 vite5.x 构建工具 打包引用antd库 <List.Item> 等组件的项目 会报错”in "node_modules/antd/es/card/Card.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
“
What is expected?
vite5.x 打包不会报警告
What is actually happening?
打包时控制台不会产生警告
Environment
Info
antd
5.11.2
React
"react": "^18.2.0"
System
win10
Browser
chrome119
The text was updated successfully, but these errors were encountered:
Reproduction link
Steps to reproduce
使用 vite5.x 构建工具 打包引用antd库 <List.Item> 等组件的项目 会报错”in "node_modules/antd/es/card/Card.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
“
What is expected?
vite5.x 打包不会报警告
What is actually happening?
打包时控制台不会产生警告
The text was updated successfully, but these errors were encountered: