protoc-gen-ts: Experimental Promises Do Not Work (Cannot read property 'interceptors' of undefined)
After enabling experimental_features, I get the following error:
TypeError: Cannot read property 'interceptors' of undefined
at ExampleClient.makeUnaryRequest (app/client_image.binary.runfiles/npm/node_modules/@grpc/grpc-js/src/client.ts:295:52)
at ExampleClient.add (app/client_image.binary.runfiles/npm/node_modules/@grpc/grpc-js/src/make-client.ts:174:15)
at example.ts:123:61
at new Promise (<anonymous>)
at ExampleClient.add (example.ts:123:16)
at client.ts:17:33
at Generator.next (<anonymous>)
at /app/client_image.binary.runfiles/repro/client.js:7:71
at new Promise (<anonymous>)
at __awaiter (/app/client_image.binary.runfiles/repro/client.js:3:12)
You can try it yourself by cloning this commit: https://github.com/flolu/typescript-protobuf-bazel-rpc/tree/8f1c47cb9944064384e9f87db2c30f0a98a2b6a2
- Run
yarn install && yarn build - Run
yarn start:server - Run
yarn start:client(error is in the client)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (9 by maintainers)
https://github.com/thesayyn/protoc-gen-ts/releases/tag/0.3.9 has been released.
This is fixed in the new release.