Crbug/1173575,不推荐使用非JS模块文件。chromewebdata/(索引)?5305:9:5551

我刚刚创建了一个新项目并第一次使用 F5 或 ctrl + f5 运行它,Chrome 中的结果是“无法访问该站点”

“err_connection_refused”

我在断点处检查了“捕获异常”的选项,并显示以下错误。

如果没有检查“捕获的异常”,则会引发下一个错误:

我尝试从终端“ng s -o”运行并且一切正常,该站点在端口 4200 上运行良好,

但我喜欢调试。

这是我的 launch.json 文件,全部默认

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200",
"webRoot": "${workspaceFolder}"
}
]
}

为什么会这样?

回答

我遇到了同样的问题,问题出在 url 上,它https://localhost:8000;代替了http://localhost:8000. 因此,请尝试检查您的网址和路线。


以上是Crbug/1173575,不推荐使用非JS模块文件。chromewebdata/(索引)?5305:9:5551的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>