Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on node 10.6.0 and up #1449

Closed
2 tasks done
Ky6uk opened this issue Jul 30, 2018 · 13 comments
Closed
2 tasks done

Crash on node 10.6.0 and up #1449

Ky6uk opened this issue Jul 30, 2018 · 13 comments

Comments

@Ky6uk
Copy link

Ky6uk commented Jul 30, 2018

  • 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
  • This is a bug
  • 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 nodejs/node#21665.

addaleax added a commit to addaleax/webpack-dev-server that referenced this issue Aug 1, 2018
`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

Fixes: webpack#1449
Fixes: nodejs/node#21665
addaleax added a commit to addaleax/webpack-dev-server that referenced this issue Aug 1, 2018
`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

Fixes: webpack#1449
Fixes: nodejs/node#21665
addaleax added a commit to addaleax/webpack-dev-server that referenced this issue Aug 1, 2018
`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

Fixes: webpack#1449
Fixes: nodejs/node#21665
addaleax added a commit to addaleax/webpack-dev-server that referenced this issue Aug 1, 2018
`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

Fixes: webpack#1449
Fixes: nodejs/node#21665
addaleax added a commit to addaleax/webpack-dev-server that referenced this issue Aug 7, 2018
`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

Fixes: webpack#1449
Fixes: nodejs/node#21665
@blackshadev
Copy link

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

addaleax added a commit to addaleax/webpack-dev-server that referenced this issue Aug 28, 2018
`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

Fixes: webpack#1449
Fixes: nodejs/node#21665
@alexander-akait
Copy link
Member

Problem still exists?

@Ky6uk
Copy link
Author

Ky6uk commented Aug 30, 2018

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

@Ky6uk
Copy link
Author

Ky6uk commented Aug 31, 2018

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.

@Ky6uk Ky6uk closed this as completed Aug 31, 2018
@blackshadev
Copy link

blackshadev commented Aug 31, 2018 via email

@blackshadev
Copy link

@evilebottnawi Seems to work just fine. Thanks!

@jrop
Copy link

jrop commented Sep 5, 2018

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

It seems to be intermittent

@blackshadev
Copy link

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

@jrop
Copy link

jrop commented Sep 6, 2018

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

@alexander-akait
Copy link
Member

@jrop you should update webpack-dev-server

@jrop
Copy link

jrop commented Sep 6, 2018

@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

@WellspringCS
Copy link

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)

@WellspringCS
Copy link

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.

RohanBhanderi pushed a commit to RohanBhanderi/webpack-dev-server that referenced this issue Oct 31, 2018
`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

related issues:
nodejs/node#21665
nodejs/node#21665
webpack#1449
expressjs/express#3388
RohanBhanderi pushed a commit to RohanBhanderi/webpack-dev-server that referenced this issue Oct 31, 2018
cherry pick of webpack@e97d345

`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

related issues:
nodejs/node#21665
nodejs/node#21665
webpack#1449
expressjs/express#3388
RohanBhanderi pushed a commit to RohanBhanderi/webpack-dev-server that referenced this issue Oct 31, 2018
cherry pick of webpack@e97d345

This commit is in webpack-dev-server v3 line, which requires webpack to be
upgraded to >= 4.0.0

`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

related issues:
nodejs/node#21665
nodejs/node#21665
webpack#1449
expressjs/express#3388
RohanBhanderi pushed a commit to RohanBhanderi/webpack-dev-server that referenced this issue Oct 31, 2018
cherry pick of webpack@e97d345

this issue was fixed is in webpack-dev-server v3 line, which requires webpack to be
upgraded to >= 4.0.0. This commit cherry picks the fix to v2 branch (on top of v2.11.3)
which does not require webpack to be upgraded to 4.0.0

`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

related issues:
nodejs/node#21665
nodejs/node#21665
webpack#1449
expressjs/express#3388
RohanBhanderi pushed a commit to RohanBhanderi/webpack-dev-server that referenced this issue Oct 31, 2018
Ports fix for webpack#1449 to v2 branch
cherry pick of webpack@e97d345

this issue was fixed in webpack-dev-server v3 line, which requires webpack to be
upgraded to >= 4.0.0. This commit cherry picks the fix to v2 branch (on top of v2.11.3)
which does not require webpack to be upgraded to 4.0.0

`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

related issues:
nodejs/node#21665
nodejs/node#21665
webpack#1449
expressjs/express#3388
RohanBhanderi pushed a commit to RohanBhanderi/webpack-dev-server that referenced this issue Nov 1, 2018
Ports fix for webpack#1449 to v2 branch
cherry pick of webpack@e97d345

this issue was fixed in webpack-dev-server v3 line, which requires webpack to be
upgraded to >= 4.0.0. This commit cherry picks the fix to v2 branch (on top of v2.11.3)
which does not require webpack to be upgraded to 4.0.0

`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

related issues:
nodejs/node#21665
nodejs/node#21665
webpack#1449
expressjs/express#3388
RohanBhanderi pushed a commit to RohanBhanderi/webpack-dev-server that referenced this issue Nov 1, 2018
Ports fix for webpack#1449 to v2 branch
cherry pick of webpack@e97d345

this issue was fixed in webpack-dev-server v3 line, which requires webpack to be
upgraded to >= 4.0.0. This commit cherry picks the fix to v2 branch (on top of v2.11.3)
which does not require webpack to be upgraded to 4.0.0

`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

related issues:
nodejs/node#21665
nodejs/node#21665
webpack#1449
expressjs/express#3388
RohanBhanderi pushed a commit to RohanBhanderi/webpack-dev-server that referenced this issue Nov 1, 2018
Ports fix for webpack#1449 to v2 branch
cherry pick of webpack@e97d345

this issue was fixed in webpack-dev-server v3 line, which requires webpack to be
upgraded to >= 4.0.0. This commit cherry picks the fix to v2 branch (on top of v2.11.3)
which does not require webpack to be upgraded to 4.0.0

`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

related issues:
nodejs/node#21665
nodejs/node#21665
webpack#1449
expressjs/express#3388
RohanBhanderi pushed a commit to RohanBhanderi/webpack-dev-server that referenced this issue Nov 1, 2018
Ports fix for webpack#1449 to v2 branch
cherry pick of webpack@e97d345

this issue was fixed in webpack-dev-server v3 line, which requires webpack to be
upgraded to >= 4.0.0. This commit cherry picks the fix to v2 branch (on top of v2.11.3)
which does not require webpack to be upgraded to 4.0.0

`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

related issues:
nodejs/node#21665
nodejs/node#21665
webpack#1449
expressjs/express#3388
ebenoist added a commit to reverbdotcom/webpack-dev-server that referenced this issue Nov 20, 2018
Do not use `spdy` on Node 10

`spdy` is effectively unmaintained, and as a consequence of an
implementation that extensively relies on Node’s non-public APIs, broken
on Node 10 and above. In those cases, only https will be used for now.
Once express supports Node's built-in HTTP/2 support, migrating over to
that should be the best way to go.

Fixes: webpack#1449
Fixes: nodejs/node#21665

https://github.com/webpack/webpack-dev-server/commit/e97d345ac370095a6e339b7997b939c88ef3e81b.patch
ebenoist pushed a commit to reverbdotcom/webpack-dev-server that referenced this issue Nov 20, 2018
josselinbuils added a commit to josselinbuils/reverse-proxy that referenced this issue Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

5 participants