Webpack-dev-server: Crash on node 10.6.0 and up

Created on 30 Jul 2018  Â·  13Comments  Â·  Source: webpack/webpack-dev-server

  • Operating System: macOS 10.13.6
  • Node Version: 10.6.0, 10.7.0
  • NPM Version: 6.1.0
  • webpack Version: 4.16.3
  • webpack-dev-server Version: 3.1.5

  • [x] This is a bug

  • [x] This is a modification request

Webpack crashes sometimes in node 10.6.0 and up. Unfortunately I can't localize the problem, but I think this is relating to https://github.com/nodejs/node/issues/21665.

1 (critical) 3 (broken) bug refactor

All 13 comments

@evilebottnawi this was one of the issues that moved me to webpack-serve since it completely broke webpack-dev-server with https for me.

Problem still exists?

@evilebottnawi I am not sure, because I am using node v10.5.0 because of the bug. I will try to use the latest node from now. Let's see.

Well, it looks fine for the last day with node v10.9.0. I think we can reopen this issue if something new will happen.

Good to hear. I will upgrade my setup next week and report back with the
results.

On Fri, 31 Aug 2018, 16:23 Roman Nuritdinov, notifications@github.com
wrote:

Well, it looks fine for the last day with node v10.9.0. I think we can
reopen this issue if something new will happen.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/webpack/webpack-dev-server/issues/1449#issuecomment-417680039,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC11IAnAad6vq1A0jWHpqAZVnVSsSrt8ks5uWUbigaJpZM4VmTdG
.

@evilebottnawi Seems to work just fine. Thanks!

I am getting this in an app created with create-react-app under node 10.9.0

It seems to be intermittent

@jrop Which version of webpack-dev-server are you running. For me this is absolutely fixed in webpack-dev-server version 3.1.7

@blackshadev

macOS 10.13.6
webpack-dev-server 2.9.4

I created the app using create-react-app --scripts-version react-scripts-ts. As others have noted, rebooting the machine causes the issue to go away for a limited time. But then it comes right back. I have switched to using Node 8.11.4 and the issue has ceased to occur.

@jrop you should update webpack-dev-server

@evilebottnawi I believe the responsible party to upgrading webpack-dev-server is the team maintaining react-scripts-ts, which is why I have resorted to using an older version of Node instead

I may be confused, as I'm using Angular CLI which uses webpack-dev-server, but my version of webpack-dev-server in the root folder node_modules is 3.1.7, and I've specified that in my Angular package.json... and yet STILL I see this crash continuously. I'm going to take my version of node back to 10.5 and see what happens. (Currently it's 10.7)

So... five hours later, and I've not seen the error yet. I still have the occasional "The expression evaluated to a falsy value" crash, but moving back to 10.5... I count it as a huge win.

For me, at least, webpack-dev-server 3.1.7 proved to be a false hope.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StephanBijzitter picture StephanBijzitter  Â·  3Comments

mrdulin picture mrdulin  Â·  3Comments

Jack-Works picture Jack-Works  Â·  3Comments

nikirossi picture nikirossi  Â·  3Comments

Ky6uk picture Ky6uk  Â·  3Comments