Skip to content

Promise polyfill not working on IE11 #858

Closed
@nanomad

Description

@nanomad

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions