Cannot find name 'AbortSignal'
See original GitHub issueHi,
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:
- Created 4 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top 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 >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
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.
It works!! Thanks you.