1π
β
I found the solution.
I am using WSL2 and my files are stored on the windows partition (C:/).
It seems that linux webpack doesnβt see file changes if they are not on Windows FS.
So I deleted my node_modules
and re-installed everything from powershell.
Did npm serve
from powershell and it worked. Hot reload was back.
So if you still wish to use WSL2 I guess that you should move your project file over to WSL2 file-system.
π€Doctor
Source:stackexchange.com