React create app hot reload is not always working on linux

后端 未结 9 1834
面向向阳花
面向向阳花 2020-12-24 12:03

I created a react application using create-react-app boilerplate, which seems to be very popular, hot reload some times updates when any of the files changes and some times

相关标签:
9条回答
  • 2020-12-24 12:54

    try deleting the node_modules folder and reinstall by using cmd npm install

    worked for me ( ubuntu 18.04.3 LTS )

    0 讨论(0)
  • 2020-12-24 12:58

    I was able to make this work using:

    sudo npm start
    
    0 讨论(0)
  • 2020-12-24 13:01

    run this command

    sudo -i
    echo 1048576 > /proc/sys/fs/inotify/max_user_watches
    exit
    
    0 讨论(0)
提交回复
热议问题