johanbrandhorst / grpcweb-example

An example implementation of a GopherJS client and a Go server using the Improbable gRPC-Web implementation
MIT License
95 stars 12 forks source link

cannot use gs (type *"google.golang.org/grpc".Server) as type ... in argument to library.RegisterBookServiceServer #20

Closed timotheecour closed 6 years ago

timotheecour commented 6 years ago

after calling go get ... to fix https://github.com/johanbrandhorst/grpcweb-example/issues/19 I'm having this issue: go run main.go

command-line-arguments

./main.go:47:35: cannot use gs (type "google.golang.org/grpc".Server) as type "github.com/johanbrandhorst/grpcweb-example/vendor/google.golang.org/grpc".Server in argument to library.RegisterBookServiceServer

go version go version go1.10.2 darwin/amd64

johanbrandhorst commented 6 years ago

You should not have to use go get ./... as it will not use the correctly vendored versions. See my comment in #19