-
Notifications
You must be signed in to change notification settings - Fork 58
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
Broken ts imports after moving to grpc-js #70
Comments
Could you please tell me where did you find the flag "grpc_js"? I googled around, and only found "generate_package_definition" as the official recommended option, see: grpc/grpc-node#931 (comment) |
In the comment it says that it's needed for Here I've opened an issue in their repo: grpc/grpc-node#1600 (comment) |
Gotcha, let me have a look. |
Yeah, I've just saw it. But it's too simple. I would make some test to see what I can do next. |
#71 Opened a small PR adding support for
|
Version 5.0.0 has been released. Thanks. |
Spent some time trying to figure out how to fix broken typescript imports after switching to
@grpc/grpc-js
. And the doc is actually wrong. In order for generated js to keep havingBookServiceClient
export instead ofexports['com.book.BookService']
and at the same time using new@grpc/grpc-js
you have to change:to
then the only difference of the generated
js
file would be the import from@grpc/grpc-js
. All the exports would remain the same.Here is the whole generation script that's using
grpc-js
:The text was updated successfully, but these errors were encountered: