Skip to content

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

@saiprakash-v

Description

@saiprakash-v

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions