I'm trying to generated proto file to dart file with protoc-plugin follow this instruction https://grpc.io/docs/quickstart/dart/ but when I run this command line
$ protoc --dart_out=grpc:lib/src/generated -Iprotos protos/helloworld.proto
this type of error occure
PS G:\Flutter Implelemt\helloworld> protoc --dart_out=grpc:lib/src/generated -Iprotos
protos/helloworld.proto
protos: warning: directory does not exist.
Could not make proto path relative: protos/helloworld.proto: No such file or directory
PS G:\Flutter Implelemt\helloworld>
dependencies used
grpc: ^0.6.6
protobuf: ^1.1.0
protoc_plugin: ^19.2.0+1
helloworld.proto
syntax = "proto3";
package helloworld;
service Greeter {
rpc SayHello ( HelloRequest ) returns ( HelloReply ) {}
}
message HelloRequest {
string name = 1 ;
}
message HelloReply {
string message = 1 ;
}
I also try the following commands
PS G:\Flutter Implelemt\helloworld> protoc --dart_out=grpc:lib/src/pb --proto_path
lib/protos/helloworld.proto
Missing input file.
PS G:\Flutter Implelemt\helloworld>
how to generate or compile the .proto file in dart/flutter
Thanks in advance :)