kubemq-io / kubemq-js

Apache License 2.0
9 stars 7 forks source link

Empty export from "kubemq_pb.d.ts" #3

Open belizwp opened 3 years ago

belizwp commented 3 years ago

I got this error when try to using the lib. node_modules/kubemq-js/lib/queues.d.ts:256:84 - error TS2694: Namespace '"$HOME/my-app/node_modules/kubemq-js/lib/protos/index"' has no exported member 'StreamQueueMessagesResponse'.

then I found this file may cause it. which contain nothing but empty export.

export {};
//# sourceMappingURL=kubemq_pb.d.ts.map

seem like src/protos/kubemq_pb.d.ts does not included when you're building to lib.

kubemq commented 3 years ago

i have pushed a fix to it in release v1.2.2 Thank you !

TECHNOFAB11 commented 2 years ago

This issue still exists, the file is "empty" on npmjs.org and when I try it locally, both are version 1.2.3

TECHNOFAB11 commented 2 years ago

A workaround is to exclude "src/protos" in the tsconfig.json and using this as a build command for example: tsc && cp src/protos/kubemq_* lib/protos

TECHNOFAB11 commented 2 years ago

@kubemq could you please reopen this? This unfortunately makes the library completely unusable in Typescript

kubemq commented 2 years ago

We will into that