Grpc web getting error _google.protobuf.Empty is not defined.

  • Error :
error : "google.protobuf.Empty" is not defined.
  • Solution
protoc -I {proto_path}\include --proto_path=proto --js_out=import_style=commonjs,binary:proto --grpc-web_out=import_style=commonjs,mode=grpcwebtext:proto pathToProto/someproto.proto