Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #12818
Closed
Open
Issue created Nov 02, 2022 by Administrator@rootContributor

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:)

  1. npx create-react-app my-app
  2. cd my-app
  3. npm start
  4. Make changes to src/App.js
  5. 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

Assignee
Assign to
Time tracking