-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
node_modules/.pnpm/[email protected][email protected]/node_modules/vue-i18n/dist/vue-i18n.runtime.mjs (303:20) A comment "/* #__PURE__*/" in "node_modules/.pnpm/[email protected][email protected]/node_modules/vue-i18n/dist/vue-i18n.runtime.mjs" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues. #1599
Comments
Here's the places the warning is pointing at:
You can also just swap |
This error is caused by a comment annotation in the vue-i18n runtime module that Rollup cannot interpret. The comment is supposed to mark a pure function, but it is placed in a wrong position. Rollup will remove the comment to avoid issues, but this may affect the tree-shaking and bundling process1. To fix this error, you have a few options: You can try to update your vite and vue-i18n versions to the latest ones, and see if the error is resolved. Some users have reported that this worked for them2. |
Hey, the stable version of vite5 will be released soon. Does the author have an official solution for this? Because this warning will be reported every time when packaging. |
Hi! vue-i18n and intlify project is OSS |
PTAL #1623 |
Reporting a bug?
Packaging error
Expected behavior
Packaging without error
Reproduction
https://stackblitz.com/edit/vitejs-vite-jq7jch?file=src%2Fmain.ts
System Info
Screenshot
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: