-
Notifications
You must be signed in to change notification settings - Fork 651
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
Module 'http2' not found #610
Comments
How did you install the Node runtime? |
Followed the standard installation guide here |
What does |
|
So, we'd need a more complete reproduction case. The |
My guess is that this problem manifested because they haven't added |
If you're using gRPC in a context where you need an empty http2 mock to load it, gRPC won't work because it fundamentally needs http2 to function. |
I'd also add that you can't make grpc work from the browser in any case. In other words, grpc can't be webpack-ed, therefore, you can't use it in a "react application" out of the box like this. |
I'd imagine that |
If |
It seems like the module isn't supported on the client side: https://www.npmjs.com/package/firebase-admin#supported-environments |
this issue is related to any library that depends on google-gax, so it is not specific to firebase-admin. For example, I am trying to use |
I guess that one way forward for browser support for |
:( |
I had same issue, installed manually deprecated package of http2 to bypass that error with |
IiroNiemi Thanks |
This happened after I installed the firebase deployment CLI today ( ? odd ). resolved by : i) npm install http2 |
In my case the reason for "Module 'http2' not found" error was too old version of node - 8.4.x - set in package.json and used by heroku. It seems http2 was added by default in 8.8.0. Updating node version to 12.x.x and npm to 6.x.x solved the problem. |
I think @philval is correct the problem comes from firebase-admin. Looks very similar to that |
Has this issue been resolved? |
This "issue" is just that there are some environments where the |
Problem description
gRPC couldn't initialize due to the missing 'http2' module.
Reproduction steps
firebase-admin
in React App, bootstrapped withcreate-react-app
yarn start
ornpm start
Environment
Error message
The text was updated successfully, but these errors were encountered: