lydell/elm-watch

File changes made don't trigger hot reload - WSL2

Opened this issue · 0 comments

Thanks so much for your work on this, it is the best.

I came across this issue (not caused by elm-watch) and thought it might be good to have a note of it in the documentation, however it might also be a bit too abstract to overly worry about.

I am on a Windows machine using vscode devcontainers for my development environment. My repository was located in my Windows User's folder (e.g. C:\Users\michael\Repos). My devcontainer Dockerfile is using ubuntu:jammy.

Essentially file changes made on the windows filesystem don't trigger file changes within the devcontainer, which meant hot reloading was not working.

Moving the repository into WSL2 is the solution. There is a warning on the vitejs website that better explains it vitejs.dev