You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to switch from using improbable-eng/grpc-web for typescript hints, to this repo. As far as I can see, the type hinting doesn't support protobuf definitions that import other protobuf definitions.
The issue can be reproduced with the following minimal protobuf examples:
// file: a.protosyntax="proto3";
packagea;
// Import the other protobufimport"b.proto";
serviceAService {
rpcGetInfo (b.BRequest) returns (b.BResponse);
}
Results in all the correct files being produced. However the imports in the type information file incorrectly target a.proto for the messages defined in b.proto:
I have tried to switch from using improbable-eng/grpc-web for typescript hints, to this repo. As far as I can see, the type hinting doesn't support protobuf definitions that import other protobuf definitions.
The issue can be reproduced with the following minimal protobuf examples:
Then running the command:
protoc \ -I . \ --js_out=import_style=commonjs:. \ --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:. \ a.proto b.proto
Results in all the correct files being produced. However the imports in the type information file incorrectly target
a.proto
for the messages defined inb.proto
:p.s. Thanks for the most awesome tool 🙏
The text was updated successfully, but these errors were encountered: