Webpack-dev-server: TypeError: Cannot read property 'headers' of null at Server.socket.on (***/node_modules/webpack-dev-server/lib/servers/SockJSServer.js:68:32)

Created on 6 Sep 2019  路  6Comments  路  Source: webpack/webpack-dev-server

TypeError: Cannot read property 'headers' of null at Server.socket.on (*/node_modules/webpack-dev-server/lib/servers/SockJSServer.js:68:32)

Most helpful comment

When will be patch release?

All 6 comments

When will be patch release?

Fixed 7964997, in near future we will be doing patch release

Even I am facing the same issue!
Is patch release done?

Update deps please

I too am getting this issue when running ng serve. Its ok for awhile then crashes out with:

TypeError: Cannot read property 'headers' of null
node_moduleswebpack-dev-serverlibserversSockJSServer.js:67
f(connection, connection.headers);

Update deps please

I am facing this issue since i upgraded angular 6 app to angular 8 and I had used angular cli to create an application.
Now which dependency should I update?
As I don't use webpack directly, Is it that I should go for updating @angular-devkit/build-angular?

Was this page helpful?
0 / 5 - 0 ratings