Development server of create-react-app does not auto refresh

后端 未结 17 1565
清酒与你
清酒与你 2020-12-01 07:30

I am following a tutorial on React using create-react-app. The application is created by create-react-app v1.3.0

create-react-app my-app

T

17条回答
  •  孤城傲影
    2020-12-01 07:57

    In my case, it was there are not enough number of file watchers. I have to change the configurations manually.

    See active file watchers limit using below command on terminal.

    cat /proc/sys/fs/inotify/max_user_watches
    

    Add below line to the /etc/sysctl.conf file.

    fs.inotify.max_user_watches = 524288
    

    Apply changes using the command below.

    sudo sysctl -p
    

提交回复
热议问题