You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works but the eslint config in create-react-app creates a compile error whenever you access a global variable which is not whitelisted in the eslint "browser" environment and AbortController is so new that it is not included there yet.
You can workaround the issue by adding "const AbortController = window.AbortController;" in each file where you use AbortController. This will not be necessary once the npm "globals" package lists AbortController in the browser environment (which will probably happen reasonably soon, one way or the other).
I've used
create-react-app
(which means Webpack under the hook!), and when I tried to play with this polyfill I had the following error:I added some
console.log
in the abortcontroller script and saw nothing...The text was updated successfully, but these errors were encountered: