-
Notifications
You must be signed in to change notification settings - Fork 647
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 typescript exports after moving to @grpc/grpc-js #1600
Comments
That second line you linked is in the However, using that option is not the only way to generate code for use with the |
@murgatroid99 that helped, thank you! Fixed by changing:
to
|
One more question, from which version of |
From what I've found it's available starting from 1.9.0 https://github.com/grpc/grpc-node/releases/tag/grpc-tools%401.9.0 |
@ikibalnyi OK, thanks. Then I could give the upgrade warning. Next version of ts grpc tool have to be upgraded with grpc-tools version over 1.9.0. |
Hey,
After updating to
@grpc/grpc-js
all the exports got changed fromexport BookService
grpc-node/packages/grpc-tools/src/node_generator.cc
Line 190 in a5cc154
export['com.book.BookService']
.grpc-node/packages/grpc-tools/src/node_generator.cc
Line 188 in a5cc154
What is the point of such change? Now it's not possible to generate proper typescript definitions for such exports.
So now such export is not valid for Typescript and you have to write
// @ts-ignore
.Why was removed export of the
BookServiceClient
? or at leastBookService
?The text was updated successfully, but these errors were encountered: