etcd3 icon indicating copy to clipboard operation
etcd3 copied to clipboard

./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 saiprakash-v opened this issue 2 years ago • 1 comments

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

saiprakash-v avatar May 05 '22 10:05 saiprakash-v

Hello, I am facing the same issue. Were you able to resolve this? Thanks a lot!

jizezhang avatar Nov 02 '23 21:11 jizezhang