-
Notifications
You must be signed in to change notification settings - Fork 351
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
Module has already exported a member named 'ServerStreamingMethodResult' #1002
Comments
There is a code that reproduces the error: https://github.com/arnidan/ts-proto-issue-1002 Both generated https://github.com/arnidan/ts-proto-issue-1002/blob/main/ts/BarService.ts#L132C13-L132C40 |
Hi @arnidan ; yeah, these conflicts are why I shied away from adding the I think there are probably a few approaches:
Obviously 1 is a lot less work; but 2 is more robust as it'd handle all/future conflicts, and not just this one off. If you'd like to submit a PR for either approach, that'd be great! Thanks! |
I'm also running into this today :) I'll take a stab at a PR for option 1 because I'm super not confident in my ability to punch out option 2. |
This should be fixed by #1003 , thanks @austin-liou ! |
@stephenh thanks! Can I ask when new releases get cut :) |
Ah yeah, usually releases are auto-published, but the |
Thanks!! Sorry about that - didn't quite know the convention |
When defining gRPC stream methods across two different services, the TypeScript compiler raises an error indicating that the module has already exported a member named 'ServerStreamingMethodResult'.
ts-proto version: 1.167.3
ts-proto params:
outputServices=nice-grpc,useExactTypes=false,outputIndex=true,esModuleInterop=true,importSuffix=.js
Steps to Reproduce
The text was updated successfully, but these errors were encountered: