Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protobuf lib in example still at v2 #654

Open
kronthto opened this issue Jul 20, 2023 · 1 comment
Open

protobuf lib in example still at v2 #654

kronthto opened this issue Jul 20, 2023 · 1 comment

Comments

@kronthto
Copy link

kronthto commented Jul 20, 2023

Hi:

it looks like this was bumped to 3 recently and the docs also state to use the latest compiler version.

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;
@utamori
Copy link

utamori commented Sep 11, 2024

@mosuem
This issue has been resolved. thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants