Angular-cli: After upgrading to version 1.0.0-beta.22-1, serving the app fails with devserver/socket.js error

Created on 6 Dec 2016  路  4Comments  路  Source: angular/angular-cli

OS?

Windows 7

Versions.

angular-cli: 1.0.0-beta.22-1
node: 6.5.0
os: win32 x64

Repro steps.

I did all the update steps (install angular-cli global, perfom "ng init" etc... etc...
Start serving the application with "ng serve". After the application is built successfully, I get the webpack-dev-server/socket.js exception...

The log given by the failure.

ERROR in (webpack)-dev-server/client/socket.js
Module not found: Error: Can't resolve 'sockjs-client' in 'c:system9sourcesWEBMYNEXUZMyNexuznode_moduleswebpack-de
v-serverclient'
@ (webpack)-dev-server/client/socket.js 1:13-37
@ (webpack)-dev-server/client?http://localhost:4200/
@ multi main

repro steps

Most helpful comment

removing the node_modules folder worked. Thanks @hansl

All 4 comments

I've never seen that. Could you try to rm -rf your node_modules folder and reinstall, see if that helps? If not, would you mind providing repro steps?

I'm closing this unless you can provide a reproducible case.

removing the node_modules folder worked. Thanks @hansl

Encountered similar issue. Removing and installing node_modules worked.

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hareeshav picture hareeshav  路  3Comments

sysmat picture sysmat  路  3Comments

daBishMan picture daBishMan  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments

rwillmer picture rwillmer  路  3Comments