angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

keep get [WDS] disconnected!

Open luzly opened this issue 9 years ago • 44 comments

OS?

Windows 10

Versions.

@angular/cli: 1.0.0-beta.32.3 [1.0.0-beta.24] node: 6.9.1 os: win32 x64 @angular/common: 2.4.8 @angular/compiler: 2.4.8 @angular/core: 2.4.8 @angular/forms: 2.4.8 @angular/http: 2.4.8 @angular/platform-browser: 2.4.8 @angular/platform-browser-dynamic: 2.4.8 @angular/router: 3.4.8 @angular/cli: 1.0.0-beta.32.3 @angular/compiler-cli: 2.4.8

Repro steps.

use ng new PROJECT create a new project without any modification, keep get [WDS] disconnected! error after ng serve.

image

The error only appears under Chrome, both version 55 and 56, it works fine in Mircrosoft Edge and other browsers. I've searched the internet, most solution is about webpack, but I don't know how to config this with angular-cli. I wonder whether this is a bug related to Chrome or not, anyway, even a newly created project suffers.

Thank you for help!

luzly avatar Feb 20 '17 07:02 luzly

I finally got the issue resolved by simply checking my package.json to see if there's a webpack dependency, in my case, there was none so I ran the following" npm install webpack-dev-server --save-dev

I hope this helps someone.

william-creative-cx avatar Jan 19 '19 16:01 william-creative-cx

I finally got the issue resolved by simply checking my package.json to see if there's a webpack dependency, in my case, there was none so I ran the following" npm install webpack-dev-server --save-dev

I hope this helps someone.

@william-creative-cx Didn't really fix the WDS issue but reminded me to fix my dev dependencies so thanks!

SebastianEShelby avatar Apr 01 '19 19:04 SebastianEShelby

Hi,

As suggested earlier in my case running angular 8 (Ubuntu OS) with "sudo npm start" seems to be working correctly now. Seems that this is not general for everyone.

BR, Zhi

zhnedyalkow avatar Jul 25 '19 10:07 zhnedyalkow

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.