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 --watch fails if specific files from froala are imported #4877

Closed
HerrDietz opened this issue Feb 12, 2025 · 1 comment
Closed

vite --watch fails if specific files from froala are imported #4877

HerrDietz opened this issue Feb 12, 2025 · 1 comment

Comments

@HerrDietz
Copy link

HerrDietz commented Feb 12, 2025

We noticed our build to be stuck in watch mode after updating vite to its latest version (6.1.0 at the time of writing).

After waiting for some time, hoping the issue would resolve magically by itself (vite 6 was rather fresh by then), we began investigating our setup.

We managed to create a small reproducer. It is very weird, as it seems like removing any froala import from the entrypoint would resolve the issue.

I uploaded the reproducer into a public repository: https://github.com/HerrDietz/froala-vite-build-reproducer

OS: MacOS 18.3.1 and Windows 11 (current patch level)
Node: 20.18.2
npm: 10.8.2

Update: It seems to be related to the number of imports.

I noticed the problem still occurs if I remove plugins and import others instead. The magic number seems to be 20. If i import 20 dependencies, the build fails once I changed the imported file. I replaced all the plugins and imported language files instead. It fails once there are 20 languages.

@HerrDietz
Copy link
Author

HerrDietz commented Feb 14, 2025

It seems to be a bug in vite. It's not yet resolved, but there is a workaround.

See vitejs/vite#19410

I'm closing the issue

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