Troubleshooting documentation does not support known issues with WSL2
Created by: jameswithers89
Describe the bug
This was originally going to be a bug report titled "Editing src/App.js and saving to reload does not refresh the browser in WSL2", when I discovered during the writing of this report that inotify is not fully supported in the 9P filesystem protocol on WSL2
Which terms did you search for in User Guide?
Followed https://create-react-app.dev/docs/troubleshooting/#npm-start-doesnt-detect-changes:
- The file is imported by the entrypoint
- The project is not in a Dropbox folder
- This doesn't appear to meet the criteria of https://github.com/facebook/create-react-app/issues/1164
- https://webpack.js.org/guides/development/#adjusting-your-text-editor referred to missing settings in PhpStorm, though I disabled "Back up files before saving" as the next closest option (made no difference)
- The project path does not contain parentheses
- Adding
CHOKIDAR_USEPOLLING=true
to.env
did not work
Whilst checking watchers, as I am using WSL2 I searched online and came across https://stackoverflow.com/questions/63402588/how-can-nodemon-be-made-to-work-with-wsl-2. This solved the problem of saving files not refreshing the browser
Steps to reproduce
(Write your steps here:)
npx create-react-app my-app
cd my-app
npm start
- Make changes to
src/App.js
- Follow troubleshooting guidance at https://create-react-app.dev/docs/troubleshooting/#npm-start-doesnt-detect-changes as changes are not detected
Expected behavior
The troubleshooting guidance refers to known issues with WSL2: https://stackoverflow.com/questions/63402588/how-can-nodemon-be-made-to-work-with-wsl-2
Actual behavior
The troubleshooting guidance does not refer to the known issues with WSL2