question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
viT-1commented, Oct 2, 2019

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 =(

1reaction
JakeChampioncommented, Oct 1, 2019

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Polyfill.io
It's a service which accepts a request for a set of browser features and returns only the polyfills that are needed by the...
Read more >
IE11 Dialog Promise Undefined - The Aurelia Discourse
Create a new app, add aurelia-dialog, change main.ts that is all it takes. ... as the error states - you need a Promise...
Read more >
Babel 7 does not polyfill Promise, Fetch and some JavaScript ...
I used bluebird to polyfill Promise, and whatwg-fetch to polyfill fetch ... written in ES6 but being passed to IE11, which causes a...
Read more >
systemjs | Yarn - Package Manager
SystemJS is a hookable, standards-based module loader. It provides a workflow where code written for production workflows of native ES modules in browsers...
Read more >
Untitled
Does it look like user error? It stops at first character of the script. Apr 23, 2021 · Web Player SDK Does Not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found