I'm using a development tool that should rebuild/update/etc. when the source files change, but this is not happening when running the tool in Windows Subsystem for Linux (WSL2). Why, and what can I do to fix it?
Note that there are a number of questions here on Stack Overflow with the same root issue, but each question focuses on a different development tool. This is designed to be a canonical question with a Community-wiki answer that is common to all tools. Note that some tools may have additional, tool-specific answers as well which should be posted on their own questions.
Links to tool-specific questions:
nodemon
: How can nodemon be made to work with WSL 2?npm run watch
: npm watch suddenly stopped working on WSL- Tailwind: Hot reload not working properly for Tailwind on WSL2
tail -f
: How do I examine the tail of a growing file on WSL-2webpack --watch
: Running webpack with watch in Bash on Ubuntu on Windows builds once and exits- Angular LiveReload: Angular LiveReload not working with Windows Subsystem for Linux
- React: WSL 2 , React not reloading with file changes?
- Flask: Flask does not reload modified code when running under WSL
- Next.js: Have to restart the Next.js dev server to view any changes
- Parcel Hot Module Reload: HMR not working (Parcel, Webpack 5) in WSL2/Ubuntu 22.04