easyCZ / grpc-web-hacker-news

An example app implementing a Hacker News reader in React with gRPC-Web and Go backend
MIT License
386 stars 59 forks source link

Installation of protoc-gen-grpc-web #14

Open iAmGroot1 opened 4 years ago

iAmGroot1 commented 4 years ago

Hi,

Sorry for an unrelated question I am currently working on using grpc-web to write a simple client for my service. I have created a service.proto file which was successfully compiled using protoc. The problem arose when I tried to generate the gRPC-Web service client stub using the plugin protoc-gen-grpc-web which doesnt work despite having installed the latter.

Got the following error : protoc -I=./ service.proto --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./ protoc-gen-grpc-web: program not found or is not executable --grpc-web_out: protoc-gen-grpc-web: Plugin failed with status code 1.

OS : Ubuntu 18.04

Any suggestions on how to solve this issue? Thank you!

easyCZ commented 4 years ago

I suspect when protoc is being invoked, it cannot find the grpc-web plugin. Would you happen to have a sample repository with setup steps? Ideally runnable in something like docker so we can isolate environment specific issues? I'm happy to help you investigate this.