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.

Cannot find name 'AbortSignal'

See original GitHub issue

Hi,

When import {CosmosClient} from '@azure/cosmos', the TS complains about missing type for AbortSignal.

node_modules/@azure/cosmos/dist/index.d.ts:2414:19 - error TS2304: Cannot find name 'AbortSignal'.

2414     abortSignal?: AbortSignal;

Wonder if that’s indeed missing.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
southpolestevecommented, Aug 22, 2019

Thanks! I see the issue now. We use AbortController types which are contained in the DOM lib. Add “dom” to your “lib” array in tsconfig as a workaround. I will investigate a more permanent fix.

0reactions
PFernandezLcommented, Aug 23, 2019

It works!! Thanks you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find name 'AbortSignal' during npm run build
When trying npm run build comand for node typescript project, i am getting above error, something related to axio package. before axio usage, ......
Read more >
AbortSignal Error with @types/arcgis-js-api 4.9 an...
ERROR in node_modules/@types/arcgis-js-api/index.d.ts(26317,14): error TS2304: Cannot find name 'AbortSignal'. How can i solve this issue?
Read more >
AbortSignal - Web APIs - MDN Web Docs - Mozilla
The AbortSignal interface represents a signal object that allows you to communicate with a DOM request (such as a fetch request) and abort ......
Read more >
AbortSignal | typescript - v3.7.7
Interface AbortSignal. A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required...
Read more >
The complete guide to AbortController in Node.js
One of these methods is the AbortSignal.timeout static method. As its name suggests, you can use it to abort cancelable asynchronous processes ...
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