Skip to content
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

IE 11 plugin-transform-runtime causes forof iteration errors #9919

Closed
Cerlancism opened this issue Apr 29, 2019 · 2 comments
Closed

IE 11 plugin-transform-runtime causes forof iteration errors #9919

Cerlancism opened this issue Apr 29, 2019 · 2 comments
Labels
i: bug i: needs triage outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@Cerlancism
Copy link

Cerlancism commented Apr 29, 2019

Bug Report

Current Behavior
With plugin-transform-runtime causes Object doesn't support property or method 'Symbol(Symbol.iterator)_4.d7pjr549xf3' in IE 11 when using for of from function* generators. for await with async function* works fine though.

Input Code

function* generator()
{
    yield 1;
}

for (let iterator of generator())
{
    console.log(iterator);
}

Expected behavior/code
logs 1

Babel Configuration (.babelrc, package.json, cli command)

package.json
{
  "devDependencies": {
    "@babel/core": "^7.4.4",
    "@babel/plugin-transform-runtime": "^7.4.4",
    "@orange-games/phaser-input": "^2.0.5",
    "@types/parcel-env": "^0.0.0",
    "parcel-bundler": "^1.12.3",
    "typescript": "^3.3.3333"
  },
  "dependencies": {
    "@babel/polyfill": "^7.4.4",
    "@babel/runtime": "^7.4.4",
    "phaser-ce": "^2.12.0"
  }
}
.babelrc
{
  "plugins": [
    [
      "@babel/plugin-transform-runtime",
    ]
  ],
  "presets": [
    [
      "@babel/preset-env",
      {
        "targets": {
          "ie": "11"
        }
      }
    ]
  ]
}

Environment

  • Babel version(s): 7.4.4
  • Node/npm version: v10.14.1
  • OS: Windows 10
  • How you are using Babel: With ParcelJS

Possible Solution
Remove "@babel/plugin-transform-runtime" or turn off regenerator of "@babel/plugin-transform-runtime" in .babelrc.

"@babel/plugin-transform-runtime",
{
    "regenerator": false,
}
@babel-bot
Copy link
Collaborator

Hey @Cerlancism! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community
that typically always has someone willing to help. You can sign-up here
for an invite.

@JLHwung
Copy link
Contributor

JLHwung commented Nov 26, 2019

Closing it as duplicates of #7597.

@JLHwung JLHwung closed this as completed Nov 26, 2019
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Feb 25, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: bug i: needs triage outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

3 participants