Cannot resolve dependency 'http2' with grpc and grpc-transport #310
JordanGreissman
started this conversation in
General
Replies: 1 comment 2 replies
-
Just in case: gRPC doesn't work in the browser. I assume you want to do server side rendering? The issue seems to be: Converting to a discussion, since this is not really an issue with protobuf-ts. Hope a helpful answer turns up. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trying to install
@protobuf-ts/grpc-transport
in an app that uses create-react-app, I getcannot resolve dependency 'http2'
. It looks like create-react-app defines an empty mock for http2 in its webpack config, and trying to manually install http2 leads to a critical dependency error:Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
.Issues in the grpc-js and create-react-app repos (here and here) imply that this has been solved in the version of both that I'm installing, so I'm unsure what to do. Has anyone encountered this?
node version: 14.16.0
npm version: 6.14.11
create-react-app version: 3.4.4
Beta Was this translation helpful? Give feedback.
All reactions