0

Local Server Auto Refresh of create-react-app is not working in my Virtual Machine: When I update my code, the server is not auto updating.

I'm using Ubuntu as OS and VSCode to write code and the VSCode terminal to run the app locally.

The command to local startup: npm start

dougparnoff
  • 61
  • 1
  • 7

1 Answers1

0

I created an .env and add CHOKIDAR_USEPOLLING=true to it. Why? This ensures that the next time of run npm start, the watcher uses the polling mode, as necessary inside a VM.

Got this from here: Development server of create-react-app does not auto refresh

And up the answer.

dougparnoff
  • 61
  • 1
  • 7