Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@chengshaohui
Copy link

Reproduction link

Edit on CodeSandbox

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?

打包时控制台不会产生警告

Environment Info
antd 5.11.2
React "react": "^18.2.0"
System win10
Browser chrome119
@chengshaohui
Copy link
Author

image

<Form.List>组件也有这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant