Razzle 不启动服务器

Razzle doesn't start server

我的 React 项目是使用 Razzle.js 创建的,我最近从 repo 下载了它。 我正在尝试 运行 这个项目,但是如果我 yarn start,我会卡在这个屏幕上 - 它显示源代码已编译并且服务器 运行 正在 [=11] =],但它不会启动服务器。

Razzle 应该启用服务器端 HMR。 但是我的代码没有启用它并卡在屏幕截图中。

在这里找到了解决方案 - Linux 有 max_user_watches 限制,增加:

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

SOURCE