field-form icon indicating copy to clipboard operation
field-form copied to clipboard

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

Open D3strukt0r opened this issue 7 months ago • 4 comments

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 avatar Nov 21 '23 06:11 D3strukt0r

Similar issue to https://github.com/ant-design/ant-design/issues/46022

Kamahl19 avatar Nov 24 '23 15:11 Kamahl19

the same issue

image

zinge avatar Jan 02 '24 20:01 zinge

I have the same issue. Anyone fixed it ?

axelmy318 avatar Jan 12 '24 14:01 axelmy318

Try to upgrade vite to latest version

LeleDallas avatar Apr 08 '24 17:04 LeleDallas