-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Promise polyfill not working on IE11 #858
Comments
No, the template works fine - Your Javascript is invalid. The error message tells you that |
@LinusBorg Please re-open because the following fails as well:
with error:
Also, it's totally legal to use an object in place of a promise. See: |
Ok, so i've done some digging by playing around with the built-in babel preset ( vue-cli/packages/@vue/babel-preset-app/index.js Lines 43 to 44 in 399e759
If I switch polyfill to true babel will insert the non-global polluting version of the Promise polyfill that works properly on IE10 |
Then the question is why the normal polyfill doesn't work on IE10? And the side-question is why do you have to support IE10? Poor guy, you have my sympthy :( I don't think we want to add the ponyfills from |
@LinusBorg I think I can manage to leave IE10 out but I was a bit surprised it didn't work since it was theoretically included in the list of supported browsers. Given that I can reproduce it successfully without vue, do you think it may be worth opening a ticket in the babel repo? Maybe that combination is not supposed to work on IE10 |
Filed a babel issue, seems like a feature detection error on IE10 |
@LinusBorg I'm dumb... It's IE11 (the one available on Windows 10) |
Looks like a fixing PR has been merged into Babel and should be fixed in the next Babel 7 release. |
Closed as it's fixed in Babel 7.0.0-beta.46 |
I still get the same error with 7.0.0-beta.46 |
Then you should probably report that in the Babel repo. |
Version
3.0.0-beta.1
Reproduction link
https://github.com/nanomad/vue-cli-promise-test
Steps to reproduce
yarn serve
What is expected?
An alert with "ALL OK" appears
What is actually happening?
Unhandled promise rejection TypeError: 0 is not iterable!
Seems like the babel preset for vue is pulling in the wrong polyfill
The text was updated successfully, but these errors were encountered: