【发布时间】:2020-10-31 19:08:09
【问题描述】:
我正在尝试按照文章创建一个 gRPC Angular 客户端:https://anthonygiretti.com/2020/03/29/grpc-asp-net-core-3-1-how-to-create-a-grpc-web-client-examples-with-angular-8-and-httpclient/
运行命令时
protoc --plugin=protoc-gen-ts="{ABSOLUTEPATH}\node_modules\.bin\protoc-gen-ts.cmd"
--js_out="import_style=commonjs,binary:src/app/generated"
--ts_out="service=grpc-web:src/app/generated" src/app/protos/greet.proto,
我收到一个错误Could not make proto path relative: src/app/protos/greet.proto: No such file or directory。目录和greet.proto文件肯定存在。
我请求有关此问题的帮助。提前谢谢!
【问题讨论】:
标签: angular typescript grpc proto