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

Filechange builds hangs running 'npx vite build --watch' in folder packages/interface #66

Open
ws333 opened this issue Jan 20, 2025 · 3 comments

Comments

@ws333
Copy link
Contributor

ws333 commented Jan 20, 2025

Not a big issue, just wanted to let you know that on my macbook builds triggered by file changes after running
npx vite build --watch in the packages/interface folder started hanging after the upgrade to vite v6.0.7.

I.e. the initial build completes, but those triggered later by file changes hangs.

Resolved by downgrading to latest v5 release (currently v5.4.12)

@siefkenj
Copy link
Owner

I just updated to vite 6.1.0. Maybe that fixes the issue?

@ws333
Copy link
Contributor Author

ws333 commented Feb 10, 2025

I tested with Vite v6.1.0 a few days ago and still the same issue, so using the last v5 release for now.
Does the watch mode work with your setup?

@ws333
Copy link
Contributor Author

ws333 commented Mar 7, 2025

Seems to be a upstream bug that causes this, more info here vitejs/vite#19410

Temporary fix mentioned here vitejs/vite#19410 (comment)

Relevant section of packages/interface/vite.config.ts after the fix is applied.

        rollupOptions: {
            maxParallelFileOps: 100,
            output: {
                entryFileNames: `assets/[name].js`,
                chunkFileNames: `assets/[name].js`,
                assetFileNames: `assets/[name].[ext]`,
            },
        },

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

2 participants