Crbug/1173575,不推荐使用非 JS 模块文件.chromewebdata/(索引)꞉5305:9:5551 [英] Crbug/1173575, non-JS module files deprecated. chromewebdata/(index)꞉5305:9:5551
问题描述
我刚刚创建了一个新项目并第一次使用 F5 或 Ctrl + F5 运行它,Chrome 中的结果是:
I just created a new project and have run it for the first time using F5 or Ctrl + F5, the result in Chrome is:
无法访问该站点
err_connection_refused
err_connection_refused
我在断点处检查了捕获的异常"选项;并显示以下错误.
I checked the option at the breakpoints for "Exceptions caught" and the following error is displayed.
没有捕获异常"检查,出现下一个错误:
Without "Exceptions caught" checked, the next error raised:
我尝试运行ng s -o";从终端,一切正常.该站点在端口 4200 上运行良好,但我喜欢调试.
I tried to run "ng s -o" from the terminal and all work fine. The site is working well on port 4200, but I like to debug.
这是我的 launch.json 文件,默认情况下:
Here is my launch.json file, all by default:
{
// 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
.
I had the same issue and the problem was with the URL, it was https://localhost:8000;
in place of http://localhost:8000
.
因此请尝试检查您的网址和路线.
So try checking your URL and routes.
这篇关于Crbug/1173575,不推荐使用非 JS 模块文件.chromewebdata/(索引)꞉5305:9:5551的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!