简体   繁体   English

Razzle 不启动服务器

[英]Razzle doesn't start server

My react project is created using Razzle.js and I recently downloaded it from a repo.我的 react 项目是使用 Razzle.js 创建的,我最近从一个 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.我正在尝试运行这个项目,但如果我yarn start ,我会卡在这个屏幕上 - 它显示源代码已编译并且服务器正在localhost:3000上运行,但它不会启动服务器。

在此处输入图像描述

Razzle was supposed to enable Server-side HMR. Razzle 应该启用服务器端 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:在这里找到了一个解决方案 - Linux 有 max_user_watches 限制,增加它:

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

SOURCE 资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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