-
Notifications
You must be signed in to change notification settings - Fork 184
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
Error: Couldn't find constructor 'GrpcServiceName'. #866
Comments
for the time being, is there any possibility to use an older version of |
I was able to work around this in my project by manually overriding from protobuf 2 to 3 by adding the following to my pubspec.yaml: dependency_overrides:
protobuf: ^3.0.0 |
@CaseyHillers thank you for sharing this! Finally a workaround.. that fixed it! |
For next time:
So for example:
Will install v. 20.0.1 |
@sigurdm |
Yeah, that would also make sense given the new pub add syntax. |
I have the exact same issue on Ubuntu 22.04.3 with libprotoc 3.12.4 and protoc_plugin 21.1.1. I also tried with protoc_plugin 20.0.1 as mentioned above but this didn't help. How did you figure which version of protoc_plugin was compatible with libprotoc on your end? |
Ubuntu 22.04.3 dart pub global activate protoc_plugin 20.0.1 worked for me. |
Thank you CaseyHillers... I fix my issue |
My proto dart files are generated by
protoc_plugin
version21.0.2
withon Mac OS (M1)
I thought that this wouldn't happen and got fixed by #848 or #844 but it isn't unfortunately.
I don't know if I'm missing something
Here is a sample snippet:
the respective error:
The text was updated successfully, but these errors were encountered: