3

Tried using https://www.npmjs.com/package/abortcontroller-polyfill?activeTab=readme to use this controller on IE. But it does not work

Rohit Kumar
  • 829
  • 2
  • 12
  • 21
  • Please try to provide detailed information about your issue. Try to inform us if there is any error message or warning message. Try to post your sample code so that we can see what you are doing in your code. If you need to support browsers where fetch is not available at all (for example Internet Explorer 11), you first need to install a fetch polyfill and then import the abortcontroller-polyfill afterwards. Did you install it and follow the steps mentioned in the document? – Deepak-MSFT May 15 '19 at 11:39

1 Answers1

13

To get window.AbortController() running in IE11, take a look at their IE11 example.

Install:

  • promise-polyfill
  • unfetch
  • abortcontroller-polyfill

Add the following to your work before AbortController is called.

import 'promise-polyfill/src/polyfill';
import 'unfetch/polyfill';
import 'abortcontroller-polyfill';
NathanQ
  • 1,024
  • 18
  • 20
  • 1
    Thanks for your response. I was able to figure this out. But later we got stuck in Safari version < 10 .. So :( :( we dropped the idea of using it later on. – Rohit Kumar Sep 10 '19 at 11:18