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

Vite.js 5 unknown comment /*#__PURE__*/ info #631

Open
D3strukt0r opened this issue Nov 21, 2023 · 4 comments
Open

Vite.js 5 unknown comment /*#__PURE__*/ info #631

D3strukt0r opened this issue Nov 21, 2023 · 4 comments

Comments

@D3strukt0r
Copy link

Since switching to Vite.js 5 (using Ant 4) I get the following information during a build:

yarn run v1.22.19
$ vite build
vite v5.0.0 building for production...
transforming...
node_modules/rc-field-form/es/utils/validateUtil.js (80:14) A comment

"/*#__PURE__*/"

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.
✓ 5537 modules transformed.
[...]

How can this be fixed?

NodeJS v20.9.0
Yarn v1.22.19
Ant v4.24.14
RC Field Form v1.34.2

@D3strukt0r D3strukt0r changed the title Vite.js 5 unknown comment info Vite.js 5 unknown comment /*#__PURE__*/ info Nov 21, 2023
@Kamahl19
Copy link

Similar issue to ant-design/ant-design#46022

@zinge
Copy link

zinge commented Jan 2, 2024

the same issue

image

@axelmy318
Copy link

I have the same issue. Anyone fixed it ?

condorheroblog added a commit to condorheroblog/field-form that referenced this issue Jan 16, 2024
@LeleDallas
Copy link

Try to upgrade vite to latest version

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

No branches or pull requests

5 participants