You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub repository with your minimal reproducible example (do not fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)
Thanks for the example, @afifurrohman-id. The grpc-node code generator plugin generates imports for the deprecated package grpc by default. You have to pass an option to tell it to generate imports for @grpc/grpc-js.
The option is grpc_js, and it is documented here in the grpc-node repository. To use it with the buf CLI, you add it as a plugin option:
plugins:
- remote: buf.build/grpc/node:v1.12.4
out: gen
+ opt: grpc_js
GitHub repository with your minimal reproducible example (do not fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)
https://github.com/afifurrohman-id/buf-node-bug.git
Commands
Output
Expected Output
a generated code
gen/hello_grpc_pb.js
must import new module@grpc/grpc-js
notgrpc
Anything else?
No response
The text was updated successfully, but these errors were encountered: