Comments (5)
Yup, I simply deleted my line
import AbortController from "abort-controller";and then removed that npm package
npm un abort-controllerand I was good to go.
I might be wrong but this solution would only work if the code was to be executed only on the browser, right? What if we need to use it in a node service? Is this interface globally available as well in this case?
from abort-controller.
Yup, I simply deleted my line
import AbortController from "abort-controller";
and then removed that npm package
npm un abort-controller
and I was good to go.
from abort-controller.
This was in a node service for me using axios. I don't know what provides the type but I do have @types/node
installed so maybe it comes from there? Or maybe @types/express
which I also have installed?
from abort-controller.
Since v15.4.0 Node.js comes with AbortController
out of the box, so that's probably why it still works even after removing this package.
from abort-controller.
@cmd-johnson cheers, I realize that's why it works, I was mentioning the types for VSCode to not complain, which undoubtedly is provided by my @types/node install. I think I incorrectly ascertained that @riboher was missing that. Seems they were just speculating.
from abort-controller.
Related Issues (20)
- Change `ev` parameter to `Event` once TS3.4 comes out HOT 2
- not working in IE 11 because the dist files are not transpiled to ES5 HOT 5
- TypeScript support is broken HOT 1
- ES-check error HOT 3
- umdOutro causes issues with webpack+babel HOT 1
- Add extension to package.json:main HOT 1
- AbortController as part of Node.js core
- Use native AbortController when possible. HOT 1
- can't ever reset a signal once it's been aborted HOT 2
- ie is not supported for this. how could we handle this problem ? HOT 1
- Update the event-target-shim dependency
- Unable to timeout Promise.
- Browser code missing named AbortController export
- Support for AbortSignal.reason HOT 1
- Add a ponyfill export
- Support for `AbortSignal.timeout` HOT 1
- controller.signal.constructor.name is invalid? HOT 3
- ModuleNotFoundError on export HOT 1
- Broken on node 18.14.2 and 19.16.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abort-controller.