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

Warning when building an app using Vite 5 #377

Open
fgordillo opened this issue Nov 21, 2023 · 0 comments
Open

Warning when building an app using Vite 5 #377

fgordillo opened this issue Nov 21, 2023 · 0 comments

Comments

@fgordillo
Copy link

I'm using @vime/vue-next in a project that uses Vite in order to build it. When I upgraded from vite 4.5 to vite 5.0.0 I started getting the following error many times on build (affecting different lines of the same file):

"/*#__PURE__*/"

in "node_modules/@vime/vue-next/dist/esm/components/index.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/@vime/vue-next/dist/esm/components/index.js (99:21) A comment

I created a repository to facilitate the reproduction of the error. You can find it here

After some investigation, it seems this problem was faced by other plugins that are built using Vite (which uses Rollup) and they already came up with some solutions: intlify/vue-i18n#1599

This is the first time I open an issue. I read the contributing guidelines and the code of conduct but I didn't find any template for what should be included in the issue. My apologies if there is one and I missed. Let me know if there is any further information needed.

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

1 participant