Grpc-web: how to config protoc-gen-grpc-web-1.0.3-windows

Created on 5 Mar 2019  路  7Comments  路  Source: grpc/grpc-web

Most helpful comment

You can specify where to find the plugin by adding a flag like --plugin=protoc-gen-grpc-web=<path to protoc-gen-grpc-web>

All 7 comments

Does not work with windows yet.

as follows, it's ok:
protoc ./helloworld.proto --js_out=import_style=commonjs,binary:.

and as follows, it's wrong:
protoc ./helloworld.proto --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.
cmd shows
--grpc-web_out: protoc-gen-grpc-web: Plugin failed with status code 1

Does not work with windows yet.

protoc-gen-grpc-web-1.0.3-windows-x86_64.exe has published, it's useless?

Refer to this issue. https://github.com/grpc/grpc-web/issues/342 . My bad it looks like the plugin works for windows.

protoc -help
find no --grpc-web_out

and protoc --version is libprotoc 3.7.0

You can specify where to find the plugin by adding a flag like --plugin=protoc-gen-grpc-web=<path to protoc-gen-grpc-web>

You can specify where to find the plugin by adding a flag like --plugin=protoc-gen-grpc-web=<path to protoc-gen-grpc-web>

thank you!@stanley-cheung , it works

Was this page helpful?
0 / 5 - 0 ratings

Related issues

barrymichaeldoyle picture barrymichaeldoyle  路  4Comments

joaomlneto picture joaomlneto  路  4Comments

oferb picture oferb  路  5Comments

rwlincoln picture rwlincoln  路  6Comments

dv29 picture dv29  路  6Comments