简体   繁体   English

http://localhost:3000/ 一直加载

[英]http://localhost:3000/ keeps loading forever

I did a npx create-react-app Xname and everything was going okay.我做了一个npx create-react-app Xname ,一切正常。 Today as I was editing my code, the page refreshed and kept on refreshing.今天我在编辑我的代码时,页面刷新并不断刷新。 So it never loads basically.所以它基本上从不加载。 I have no error on the Terminal.我在终端上没有错误。 I tried many things like opening another project, using a different port (3001), killing all ports, using another Browser, Restarting my Laptop, etc but the problem remains.我尝试了很多事情,比如打开另一个项目、使用不同的端口(3001)、杀死所有端口、使用另一个浏览器、重新启动我的笔记本电脑等,但问题仍然存在。 No project can be opened to the browser.浏览器无法打开任何项目。 The browser keeps on loading forever.浏览器一直在加载。 Does anybody know what I can do in this case?有人知道在这种情况下我能做什么吗?

i restarted my pc and it worked for me.我重新启动了我的电脑,它对我有用。 I think the app was running on port 3000 already in the background.我认为该应用程序已经在后台运行在端口 3000 上。

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

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