Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 6 [WDS] Disconnected Error on Firefox

I use Angular and i get console error only on Firefox "[WDS] Disconnected!".

Firefox console error message is here

Here is my Angular-Cli version.

Angular CLI: 6.0.1
Node: 8.11.1
OS: win32 x64
Angular: 6.0.1
... cli, common, compiler, compiler-cli, core, forms, http
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.1
@angular-devkit/build-angular     0.6.1
@angular-devkit/build-optimizer   0.6.1
@angular-devkit/core              0.6.1
@angular-devkit/schematics        0.6.1
@angular/animations               6.0.4
@ngtools/webpack                  6.0.1
@schematics/angular               0.6.1
@schematics/update                0.6.1
rxjs                              6.2.0
typescript                        2.7.2
webpack                           4.6.0
like image 765
MehmetDemiray Avatar asked Jul 02 '18 17:07

MehmetDemiray


2 Answers

Solved it today by running npm update. Apparently it was a bug with an older version of Webpack.

like image 162
bluppfisk Avatar answered Oct 21 '22 00:10

bluppfisk


This error appeared again for me under angular 7.2.1.

The solution was to add the following line in angular.json under architect>serve>options:

"disableHostCheck": true
like image 31
Fredrik_Borgstrom Avatar answered Oct 21 '22 01:10

Fredrik_Borgstrom