我正面临以下问题,我真的不知道是什么原因引起的。
请检查以下附件
当我尝试使用ng serve --open
运行服务器时,服务器启动并编译所有内容。页面打开后,我立即收到一个空白窗口,似乎在等待某些东西。通过打开devtools,我注意到浏览器在很长一段时间内保持所选文件(超过1分钟,如图中所示)。如果我从浏览器中单击正在删除当前脚本的按钮,则表示所选文件已成功返回200代码,之后立即显示为101状态的websocker。我不知道哪一个悬挂,为什么但似乎他正试图切换一些协议。
如果我设法以足够快的速度打开浏览器的控制台,它会不停地打印此platform-browser.js:1770 Throttling history state changes to prevent the browser from hanging.
之类的消息。
也许这会有所帮助
platform-browser.js:1770 Throttling history state changes to prevent the browser from hanging.
push../node_modules/@angular/platform-browser/esm5/platform-browser.js.BrowserPlatformLocation.replaceState @ platform-browser.js:1770
push../node_modules/@angular/common/esm5/common.js.PathLocationStrategy.replaceState @ common.js:731
push../node_modules/@angular/common/esm5/common.js.Location.replaceState @ common.js:307
push../node_modules/@angular/router/esm5/router.js.Router.resetUrlToCurrentUrlTree @ router.js:5625
(anonymous) @ router.js:5574
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:388
onInvoke @ core.js:4760
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:387
push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:138
(anonymous) @ zone.js:872
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:421
onInvokeTask @ core.js:4751
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:420
push../node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:188
drainMicroTaskQueue @ zone.js:595
Promise.then (async)
scheduleMicroTask @ zone.js:578
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:410
onScheduleTask @ zone.js:297
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:401
push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:232
push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ zone.js:252
scheduleResolveOrReject @ zone.js:862
resolvePromise @ zone.js:808
(anonymous) @ zone.js:724
webpackJsonpCallback @ bootstrap:23
(anonymous) @ dashboard-dashboard-module.js:1
platform-browser.js:1770 Throttling history state changes to prevent the browser from hanging.
push../node_modules/@angular/platform-browser/esm5/platform-browser.js.BrowserPlatformLocation.replaceState @ platform-browser.js:1770
push../node_modules/@angular/common/esm5/common.js.PathLocationStrategy.replaceState @ common.js:731
push../node_modules/@angular/common/esm5/common.js.Location.replaceState @ common.js:307
push../node_modules/@angular/router/esm5/router.js.Router.resetUrlToCurrentUrlTree @ router.js:5625
(anonymous) @ router.js:5574
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:388
onInvoke @ core.js:4760
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:387
push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:138
(anonymous) @ zone.js:872
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:421
onInvokeTask @ core.js:4751
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:420
push../node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:188
drainMicroTaskQueue @ zone.js:595
Promise.then (async)
scheduleMicroTask @ zone.js:578
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:410
onScheduleTask @ zone.js:297
push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:401
push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:232
push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ zone.js:252
scheduleResolveOrReject @ zone.js:862
resolvePromise @ zone.js:808
(anonymous) @ zone.js:724
webpackJsonpCallback @ bootstrap:23
(anonymous) @ dashboard-dashboard-module.js:1
platform-browser.js:1770 Throttling history state changes to prevent the browser from hanging.
...
端口未被占用。
我正在使用
任何想法为什么会挂这个?