Angular 无法使proto路径相对:src/app/protos/greet.proto:没有这样的文件或目录
我正试图创建一个gRPC Angular客户端,如下所述: 在运行命令时Angular 无法使proto路径相对:src/app/protos/greet.proto:没有这样的文件或目录,angular,typescript,grpc,proto,Angular,Typescript,Grpc,Proto,我正试图创建一个gRPC Angular客户端,如下所述: 在运行命令时 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/
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,
我收到一个错误无法使proto路径相对:src/app/protos/greet.proto:没有这样的文件或目录
。目录和greet.proto文件肯定存在
我请求帮助解决这个问题。提前谢谢你 对于那些可能遇到这个问题的人,文章作者给出了答案
protoc --plugin=protoc-gen-ts="C:/University/IT/Angular_grpc/angular-client/node_modules/ts-protoc-gen/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