Replies: 1 comment
-
I'm having this same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi to all,
Some days ago, after doing some changes to a project I'm working on, the HMR have partially stopped working:
I can see that it track all the files that I need, but respond to the modification of only a small part of them. In particular it's only responding to change in config files, like the vite.config.js and to php files, tracked by the laravel plugin, but not to scss and vue files (my project mainly use laravel and vuejs).
If I execute vite in debug mode I can see that the HMR module effectively start tracking the files I'm interested in, but if I change them directly, or one of their dependencies, vite doesn't seam to react to the change.
This problem happen only on one machine, an ubuntu server 22.04, while the same project on a MacOs machine doesn't give me any problem (with the same node packages, installed using the same package-lock.json).
For example, here's a section of the log about a vue file I'm tracking:
But if I try to modify the file in any way, vite doesn't detect the changes and doesn't write anything to the console, while with other files they react immediately.
I would like to ask what I can do to debug further. There's any way to see the effective list of tracked files? Or for example check if one of the plugins, like the laravel one, are doing something wrong?
From the log lines "vite:hmr [self-accepts]" it's seam to me that the files are tracked correctly.
Here's my current vite.config.js
Thanks to all
Best regards
Daniele
Beta Was this translation helpful? Give feedback.
All reactions