0

React development server not restarting automatically!

Hi, I am working on a react application but if i am making any changes to any of its file the local development server is not restrarting by its own and hence the changes are not reflected in UI. I have to restart the application manually again to see the changes.What could be the reason?

23rd Mar 2022, 5:24 AM
Ashutosh Raturi
Ashutosh Raturi - avatar
3 odpowiedzi
+ 1
Sometimes if there is error in code react application stop working, and you need to restart it by yourself. But if this is heppening all the time, then try to uninstall react library and install it again.
23rd Mar 2022, 5:49 AM
PanicS
PanicS - avatar
+ 1
Hi PanicS, I tried to reinstall but it didn't work. I am using 16.8 version of React. Thanks for your response.
23rd Mar 2022, 10:24 AM
Ashutosh Raturi
Ashutosh Raturi - avatar
0
Maybe this post can help you https://stackoverflow.com/questions/43274925/development-server-of-create-react-app-does-not-auto-refresh If not try to create new react app and copy/paste old data to this new app. Also make sure starting javascript file are named index.js, maybe this can also make problem.
23rd Mar 2022, 11:52 AM
PanicS
PanicS - avatar