./node_modules/@grpc/grpc-js/build/src/server.js Module not found: Can't resolve 'http2' in 'node_modules/@grpc/grpc-js/build/src'
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 546
- Forks
- 76
- Avg merge
- 22h 46m
- Merged PRs (30d)
- 13
Description
etcd3 has @grpc/grpc-js as a dependency. When etcd3 has been added as a dependency and used in a react application and ran npm start I'm getting the error mentioned in title
node version: 16.13.2
http2 declared here doesn't seem to be working

Although I see that grpc-js package.json has @types/node as a dependency in which http2 module is exported, it seem to not pick it up (assuming it has to pick from here. Correct if not)


Need help with resolving this issue
TIA
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by adding etcd3 to a React application and running npm start with Node 16.13.2. Start by inspecting node_modules/@grpc/grpc-js/build/src/server.js and the package's @types/node dependency in the reported setup. Done means the React application starts without the http2 resolution error while using etcd3.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grpc, node.js, react, typescript
- Domain
- api, backend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100