Experimental Promises Do Not Work (Cannot read property 'interceptors' of undefined)
See original GitHub issueAfter 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)
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Mocking axios with Jest throws error “Cannot read property ...
I'm stuck on an error around axios interceptors and can't make my way around it. This is my api.js file: import axios from...
Read more >Vuex - Cannot read property 'interceptors' of undefined(…)
I am currently learning Vuex. I have a simple 'todos' app which takes the data form server-side (Laravel) using vue-resource (Ajax).
Read more >[webpack-cli] typeerror: cannot read properties of undefined ...
That is, the primary problem being: TypeError: Cannot read property 'properties' of undefined. The best solution I've found to the problem is to...
Read more >nock - npm
HTTP server mocking and expectations library for Node.js. Latest version: 13.2.9, last published: 5 months ago.
Read more >Axios-lab - npm.io
This is a fork of Axios package to test experimental features. ... the token after it completed since cancelToken doesn't provide any methods...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/thesayyn/protoc-gen-ts/releases/tag/0.3.9 has been released.
This is fixed in the new release.
#72 already fixes this problem but it introduces some breaking.