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
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>