Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
npm/commonjs, where to find protoc-gen-grpc-web? #232
Hi! I've been following the recent conversation and am glad to see support already merged. Great work!
I followed the quickstart in the module's readme, but I can't seem to find how to reference the
If I just run the example
protoc echo.proto --js_out=import_style=commonjs:generated --grpc-web_out=import_style=commonjs,mode=grpcweb,out=echo_grpc_pb.js:generated
It complains that "protoc-gen-grpc-web: program not found or is not executable".
Where can I get this plugin from? Do I have to compile it myself? Could it be included in the npm package?
Actually, looks like you are coming from the documentation from the npmjs website. Then you actually have to
Sorry it wasn't very user friendly for now. We are working to polish on a lot of these fronts.
referenced this issue
Aug 8, 2018
I've been facing this in some projects recently.
So, until there is an npm package for this, I've created https://github.com/juanjoDiaz/grpc-web-generator which essentially only requires docker in the machine and can be integrated easily with npm-based workflows.
I think that it might be useful for someone getting to this issue