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 dev hangs #5702

Closed
ericpgreen2 opened this issue Sep 16, 2024 · 2 comments
Closed

vite dev hangs #5702

ericpgreen2 opened this issue Sep 16, 2024 · 2 comments
Assignees

Comments

@ericpgreen2
Copy link
Contributor

ericpgreen2 commented Sep 16, 2024

We've recently started having problems running the app via Vite's dev mode with HMR. Seemingly, the dev server spontaneously stops serving the application, and the only remedy is to restart the dev server.

I've seen this error message in the browser console:
Image

Some thoughts on paths forward:

  • Upgrade to SvelteKit 2.0, which upgrades from Vite 4 to Vite 5.
  • Dig into Vite's server settings. Like, maybe pruning the watched files could improve performance.
  • Is this a problem with port 3001? On port 3000, I seem to have fewer HMR crashes, but my browser consistently hangs whenever I restart the app on a new project.

See vitejs/vite#11468

@mindspank
Copy link
Contributor

mindspank commented Sep 16, 2024

Ah so that's what it was! Thought I was going insane the other day 😂

@ericpgreen2 ericpgreen2 self-assigned this Sep 16, 2024
@ericpgreen2 ericpgreen2 changed the title vite dev crashes vite dev hangs Sep 24, 2024
@ericpgreen2
Copy link
Contributor Author

Closed by #5797

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

3 participants