protobuf lib in example still at v2
kronthto opened this issue · 1 comments
kronthto commented
Hi:
it looks like this was bumped to 3 recently and the docs also state to use the latest compiler version.
grpc-dart/example/helloworld/pubspec.yaml
Line 12 in 9dadc31
This is still at v2. The included generated files work, but once you regenerate them the latest version syntax is included and it errors:
$ protoc --dart_out=grpc:lib/src/generated -Iprotos protos/helloworld.proto
$ dart bin/server.dart
lib/src/generated/helloworld.pbgrpc.dart:22:6: Error: Couldn't find constructor 'GrpcServiceName'.
@$pb.GrpcServiceName('helloworld.Greeter')
^^^^^^^^^^^^^^^
// import 'package:protobuf/protobuf.dart' as $pb;