microsoft / microsoft/etcd3

./node_modules/@grpc/grpc-js/build/src/server.js Module not found: Can't resolve 'http2' in 'node_modules/@grpc/grpc-js/build/src'

Open
#164 1 comment 0 reactions 0 assignees View on GitHub

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
WhatsApp Image 2022-05-05 at 3 56 51 PM

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)
WhatsApp Image 2022-05-05 at 3 57 15 PM
Screenshot from 2022-05-05 15-53-19

Need help with resolving this issue

TIA

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.