question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Experimental Promises Do Not Work (Cannot read property 'interceptors' of undefined)

See original GitHub issue

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

  1. Run yarn install && yarn build
  2. Run yarn start:server
  3. Run yarn start:client (error is in the client)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
thesayyncommented, Jul 7, 2021

https://github.com/thesayyn/protoc-gen-ts/releases/tag/0.3.9 has been released.

This is fixed in the new release.

0reactions
thesayyncommented, Jul 6, 2021

#72 already fixes this problem but it introduces some breaking.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found