-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error: Missing IncomingMessage property on http2 module? #3
Comments
Same. |
NodeJS version 11.0.0+ has a core http2 module (previously hidden behind You may need to require the old http2 module via a relative or fixed path instead then pass it to express-http2-workaround. |
can you please provide code snippet of the solution? |
Any update on this ? |
@Jashepp Please share me any code for the same |
Stumbled upon this thread as I googled for this specific error. As Jasheep said the issue is that node (since version 10 LTS) now has a native The solution is to replace @Jashepp - I know this project hasn't been updated in a long time but a suggestion be to update the code in the README with this small change. So @SangeetaKhan , @talwaserman - the code sample from https://github.com/Jashepp/express-http2-workaround#example works if you just change the path for the http2 import. Here's a full example I used, works fine in node 10.16.3.
Browse to PS: the original example uses 443 but some machines have permission denied for those ports so I changed it to a random one like 5000. |
getting the following error
Error: Missing IncomingMessage property on http2 module?
npm verison: 6.4.1
node version: 11.1.0
express: 4.15.4
The text was updated successfully, but these errors were encountered: