polyfill-library: [bug]: Replacing bluebird + whatwg-fetch to polyfill.io caused error in IE11

What

I have a typescript project with SystemJS bundling. Until recently (with bluebird Promise & whatwg-fetch) it was ok, but this project is only test for our product (in which we use polyfill.io polyfills).

Details

Label “Test SystemJS & Vue” should be green (if all is ok & vue initiated) & console.log should have Main entry file is Ok!. Reproduce:

  • change this lines to <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,fetch,Promise"></script>

  • npm run deploy

  • npm run www

  • open IE11 & open changed index.htm on http://localhost:3000/

  • open console & see: SystemJs bundle is loaded! - it’s fine (SystemJS seems to be Ok) Uncaught (in promise) TypeError: …

  • repeat this steps without first step - label is green now!

IE 11.737.17763.0 Windows 10 (Desktop)

Additional information

Issue on SystemJS about this. Issue on vue-class-component

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Dirty workaround from 2016 is working for me (with external fetch & Promise): https://cdn.polyfill.io/v3/polyfill.js?flags=always,gated&excludes=Symbol,Symbol.iterator,Symbol.species Will it ever be fixed?

PS: trying https://cdn.polyfill.io/v3/polyfill.js?flags=always,gated&features=default,fetch,Promise&excludes=Symbol,Symbol.iterator,Symbol.species is no success =(

@viT-1 If using always I would recommend also using gated to ensure polyfills are only applied when the native feature is missing https://cdn.polyfill.io/v3/polyfill.min.js?flags=always,gated&features=default,fetch,Promise