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<Form>组件控制台会警告” contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues“ #46172

Open
chengshaohui opened this issue Nov 29, 2023 · 7 comments

Comments

@chengshaohui
Copy link

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 使用vite5.x版本
  2. 引入组件
  3. build项目
  4. 控制台警告:in "node_modules/rc-field-form/es/utils/validateUtil.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?

控制台没有警告

What is actually happening?

控制台出现警告内容:in "node_modules/rc-field-form/es/utils/validateUtil.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.

Environment Info
antd 5.11.5
React "react": "^18.2.0"
System win10
Browser chrome119
@MadCcc
Copy link
Member

MadCcc commented Dec 1, 2023

Same as #46024

@chengshaohui
Copy link
Author

Same as #46024

是和这个bug相同的问题,但是最新的vite^5.0.5 和最新的antd^5.12.1 引入Form组件 build时还是会有一行警告“in "node_modules/rc-field-form/es/utils/validateUtil.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.”

@codesnipers
Copy link

there are same meesage at v5.12.4

@yurizhang
Copy link

there are same meesage at vite 5.0.10

@codesnipers
Copy link

https://rollupjs.org/migration/#general-changes

how about this one?

@zhenzhenChange
Copy link

+1

@codesnipers
Copy link

in my experience, it works fine.
antd v5.12.8 with vite v5.0.11

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

No branches or pull requests

5 participants