-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix support for node 11.1 and above #13
Conversation
Yay! can we get a release? |
Yeap. Looking forward to release |
not on the last version 4.0.1 |
We need this fix asp, please. We are struggling with this error for months. |
When will this be released? |
Is there any date scheduled to release this fix? |
Please merge! |
I just want to echo what aaclayton said. Please, please merge this fix. |
@daviddias @jacobheun What about this PR for adding http2 support to node 12 LTS ?? |
Since this doesn't seem to be getting merged anytime soon, I thought I'd share my patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Published as 2.0.1 |
Many Thanks, @indutny! |
It still fails on node 12 in mid-Sept 2020. |
Works for me in node 14. Update to the last version and it should be working fine |
@adityashukla74 Make sure you've cleared node_modules and reinstalled, double check your package lock and ensure that handle-thing is >= 2.0.1 and it should work, however ensure you test it locally (by spamming refresh or something to create/kill some reqs before they can complete) before going to prod with newer versions of v12 due to this (unrelated) issue: Hopefully this patch to |
@aphix I tried with Node v12.13.0 LTS. webpack: Compiled successfully. RangeError: Invalid typed array length: -4095 npm ERR! A complete log of this run can be found in: |
That's a different issue @adityashukla74 -- also I've looked further and that solution isn't viable in either case. That sounds like this package using something not available to your webpack build and far outside the scope of this package. I think you might be using a wrong tool for a job somewhere, good luck. |
that does look like the old error though... what are the outputs of |
Fixes #6
Took a stab at trying to fix
onread
support for node 11.1 and above.Looked at https://github.com/nodejs/node/blob/v11.1.0/lib/internal/stream_base_commons.js#L111 to figure out how to pass
nread
Confirmed on master https://github.com/nodejs/node/blob/master/lib/internal/stream_base_commons.js#L163 that the implement hasn't changed since then
This change is