简体   繁体   中英

Razzle doesn't start server

My react project is created using Razzle.js and I recently downloaded it from a repo. I am trying to run this project, but if I yarn start , I'm stuck in this screen - it shows me the source is compiled and the server is running on localhost:3000 , but it doesn't start the server.

在此处输入图像描述

Razzle was supposed to enable Server-side HMR. But my code was not enabling it and stuck in the screenshot.

Found a solution here - Linux has the max_user_watches limited, increase it by:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

SOURCE

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM