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.

Promise polyfill not working on IE11

See original GitHub issue

Version

3.0.0-beta.1

Reproduction link

https://github.com/nanomad/vue-cli-promise-test

Steps to reproduce

  • Create a new project via vue-cli (accepts the defaults)
  • Add the following to main.js
Promise.all([0]).then(function() {
  alert("ALL OK");
})
  • Run yarn serve
  • Open IE11

What is expected?

An alert with “ALL OK” appears

What is actually happening?

  • No alert
  • Error in console Unhandled promise rejection TypeError: 0 is not iterable!

Seems like the babel preset for vue is pulling in the wrong polyfill

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
LinusBorgcommented, Jul 22, 2018

Then you should probably report that in the Babel repo.

2reactions
nanomadcommented, Feb 19, 2018

Filed a babel issue, seems like a feature detection error on IE10

https://github.com/babel/babel/issues/7395

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to support promises in Internet Explorer 11?
IE11 neither supports arrow functions nor native Promises. Use a JS transpiler (like babel) or don't use ES6 features. For Promise support you ......
Read more >
Troubleshooting Promise Polyfill Not Working as Expected
I had an interesting problem with Promise Polyfill to make promise and finally work on IE11. The page has multiple JS bundles.
Read more >
promise-polyfill - npm
Lightweight ES6 Promise polyfill for the browser and node. Adheres closely to the spec. It is a perfect polyfill IE or any other...
Read more >
Axios not working in IE11 even after using ES6-promise. #1694
Hey guys - so here is just a quick tip which could help some folks: Sometimes it can seem like the promise-polyfill is...
Read more >
Promises is not supported in this environment. please polyfill ...
Hi, When the function modeler is called I'm getting the error (Promises is not supported in this environment. please polyfill promise) on IE...
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