Closed ApoorvGuptaAi closed 2 years ago
@ApoorvGuptaAi The --grpc-web_out
option invokes an external tool by the name of protoc-gen-grpc-web
, which is not included in this repository.
It's likely this: https://github.com/grpc/grpc-web#code-generator-plugin
(I see import_style=commonjs+dts
documented there as well.) That's likely a more appropriate place to report this bug. Though, do note that they mark that feature as experimental.
We don't generate .d.ts, so this may be a grpc-web issue.
Please re-file against https://github.com/grpc/grpc-web
What version of protobuf and what language are you using? Version: libprotoc 3.12.1 Language: Javascript
What operating system (Linux, Windows, ...) and version? Ubuntu 18.04
What runtime / compiler are you using (e.g., python version or gcc version) Node 10
What did you do? Steps to reproduce the behavior:
What did you expect to see example_pb.d.ts generates a signature for setXXX fields that return the proto.
What did you see instead? Generated signature returns void.
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Note the actual generated file returns a value: