-
Notifications
You must be signed in to change notification settings - Fork 436
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
--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC` #1104
Comments
Hi, thanks for your issue! First, let me make clear that I don't speak for Improbable, I never worked there, and I don't know what they do internally. This repository has bitrot a bit since it was first created, and the protobuf generation in particular is an area that could use some work. I'm sorry you had a bad experience, but I would generally recommend not using this repository as a model for anything right now. That said, Go+gRPC+gRPC-web is a really great combination, whether you use the client/proxy from this repository or not. I don't know if I have any good modern example projects to point to (I might create one, separate from this project 🤔), but generally it's "just" a matter of getting the generation working and then hosting the client somewhere where you can reach the server. I have an example that uses a different client here: https://github.com/johanbrandhorst/grpcweb-example/blob/master/main.go, but it's also a bit old so I wouldn't use it for anything other than inspiration. Your immediate problem is because you're using a different version of |
I went and made an example repo of using Go, React/TS and gRPC-Web - it uses a different client library, but it is using our proxy in the backend: https://github.com/johanbrandhorst/grpc-web-go-react-example. |
Thanks for all of the feedback and info Johan! I'll definitely give your repo a dig! |
grpc-web
solutions to setup an Angular (or Vue) project with Go + gRPC.client/grpc-web-react-example
and read the Readme.mdnpm install
, no errorsnpm start
, error:go mod vendor
option go_package = "./";
@ line 4 ofproto/examplecom/library/book_service.proto
Looking to strongly advocate for using Go+gRPC at my job, but i've had trouble finding useable projects to learn from. This looked like the "defacto" project to learn from, however the documentation only appears to be "Feature Documentation" and it doesn't appear to be up-to-date?
Has Improbable moved away from Go+gRPC (or simply gRPC in general)?
Cheers!
The text was updated successfully, but these errors were encountered: