Angular 开发服务器错误通道:handleResponse UNK/SW_UNREACHABLE 选项 getValue 中出错

Abh*_*kar 6 javascript angular

我最近安装了一个新的角度应用程序。在执行 ng 服务时,应用程序被加载。但几秒钟后我在控制台中收到一些奇怪的错误。

Channel: Error in handleResponse UNK/SW_UNREACHABLE options getValue
_handleResponsePromise @ commons.js:2
(anonymous) @ commons.js:2
7commons.js:2 
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
fromGeneric @ commons.js:2
fromAny @ commons.js:2
_handleResponsePromise @ commons.js:2
(anonymous) @ commons.js:2
Run Code Online (Sandbox Code Playgroud)

不知道为什么会发生这个错误。我的package.json内容如下

"dependencies": {
    "@angular/animations": "^14.1.0",
    "@angular/common": "^14.1.0",
    "@angular/compiler": "^14.1.0",
    "@angular/core": "^14.1.0",
    "@angular/forms": "^14.1.0",
    "@angular/material": "^7.0.0",
    "@angular/platform-browser": "^14.1.0",
    "@angular/platform-browser-dynamic": "^14.1.0",
    "@angular/router": "^14.1.0",
    "jwt-decode": "^3.1.2",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^14.1.1",
    "@angular/cli": "~14.1.1",
    "@angular/compiler-cli": "^14.1.0",
    "@types/jasmine": "~4.0.0",
    "jasmine-core": "~4.2.0",
    "jwt-decode": "^3.1.2",
    "karma": "~6.4.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.0.0",
    "typescript": "~4.7.2"
  }
Run Code Online (Sandbox Code Playgroud)

这是我第一次收到此错误。在互联网上我也没有得到任何相关信息。请帮助我。

小智 20

对于任何遇到同样问题的人来说,这是 Evernote 扩展。Matthieu Riegler 将其视为评论,因此我决定将其发布以使其更清楚。

以下是来自 Evernote 论坛的链接:https://discussion.evernote.com/forums/topic/145285-console-channel-error-in-handleresponse-unksw_unreachable-error/