Grpc-web: Cannot find module 'grpc-web-client'

Created on 23 Apr 2018  ·  2Comments  ·  Source: improbable-eng/grpc-web

image

image

% make
protoc -I=. grpc.proto \
                --js_out=import_style=commonjs,binary:./pkg \
                --plugin=protoc-gen-ts=/Users/gert/node/bin/protoc-gen-ts \
                --ts_out=service=true:./src
% tsc
src/grpc_pb_service.d.ts(5,20): error TS2307: Cannot find module 'grpc-web-client'.
% npm list --depth=0
[email protected] /Users/gert/go/src/bitbucket.org/gertcuykens/lib/ts
├── @types/[email protected]
├── [email protected]
└── [email protected]

%

grpc-web-client doesn't seem to be able to be found.

Also note that the npm -i grpc-web-client version seem to be out of sync with master 0.6.0

Their is also a version mismatch between "@types/google-protobuf": "^3.2.5" and "google-protobuf": "^3.2.0" in package json

All 2 comments

This looks like an environment problem, and this isn't the forum for debugging this kind of thing. Please join the slack channel (or any TypeScript debugging forum) for help in getting your environment set up correctly.

Had similar problem, yarn did not upgrade my ts-protoc-gen correctly. Make sure you have latest version if you get similar error

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mier85 picture mier85  ·  16Comments

dweemx picture dweemx  ·  17Comments

igorgatis picture igorgatis  ·  4Comments

Revinand picture Revinand  ·  8Comments

beeekind picture beeekind  ·  6Comments