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-node
server HMR is broken
#14469
Comments
vite-node
server HMR is broken on Linux and Windowsvite-node
server HMR is broken
@antfu Can you please check this? I can confirm on multiple mac versions it is also broken... Do we have a watcher still with vite-node? |
Yes, we have Vite's watcher to invalidate the modules. I will investigate |
I can confirm this bug in the edge build, but not in our development playground. |
Is it still not working on Linux/Windows? |
@antfu Yes i could constantly reproduce on Windows (Windows 11 on PC + Parallers on M2 arm64) and Randomly on Linux (WSL). Will share a screen cast of issue. It is not directly fault of vite-node BTW but when we enable vite-node, since server watcher happens first, client watcher gets broken eventually. |
I can no longer reproduce it on rc.8. Seems an underlying library fixed the root cause! |
Environment
Linux
v16.15.0
3.0.0-rc.6-27651720.5dc864d
yarn@1.22.19
vite
experimental
-
-
Reproduction
(on Windows, Linux, Docker (Linux) or WSL2 environment)
npx nuxi init
(switnpm run dev
app.vue
such as<template><div>Hello world!</div></template>
app.vue
Describe the bug
Client is updated with HMR and subsequent reloads but server is not. Causing hydration error.
It might be related to the issue #12822 since now client HMR on Linux works and Server not (in current nuxt, it is otherwise). But also trying CHOKIDAR_USEPOLLING=1 I still have same issues.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: