Vite Hot Reload not working
See original GitHub issueDescribe the bug
HMR is not working as it should, nothing in the page is updated unless I do a browser refresh (F5). Thought it was the Tailwind thing with Vite, turns out it wasn’t.
Reproduction
System Info
System:
OS: Windows 10 10.0.19042
CPU: (4) x64 Intel(R) Core(TM) i3-1005G1 CPU @ 1.20GHz
Memory: 112.30 MB / 3.80 GB
Binaries:
Node: 14.16.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.11 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1023.0)
Internet Explorer: 11.0.19041.1
npmPackages:
@vitejs/plugin-vue: ^1.2.3 => 1.2.3
vite: ^2.3.8 => 2.3.8
Used package manager: YARN
Logs
Before submitting the issue, please make sure you do the following
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Provide a description in this issue that describes the bug.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it’s a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:12 (3 by maintainers)
Top Results From Across the Web
enable hot reload for vite react project instead of page reload
After following the searching; I found this link. The problem is if any of exports are named exports like export const foo =...
Read more >Troubleshooting - Vite
Also if there is a dependency loop, a full reload will happen. To solve this, try removing the loop. Build #. Built file...
Read more >Fixing Hot Module Reload of Vite App in WSL - YouTube
Is hot reloading not working in your app created with Vite? For Windows and WSL users polling might the solution to your problems....
Read more >Issues with hot reloading on vite? : r/vuejs - Reddit
I love how quickly vite spins up the server, however I've noticed that my hot reloading on save seems to be very buggy...
Read more >No hot reload with new laravel vite - Laracasts
js', ]), ], server: { host: '192.168.56.56', }, });. Now I have another problem. Everytime I change something in my css, the updates...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just adding that I’ve had similar problems recently, although haven’t had time to thoroughly debug. We are also using Tailwind.
hacked @onenail 's pr into node_modules and issue fixed, thanks a lot! we have to wait for devs to merge it now