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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: "Invalid host defined options" when using polypill-corejs3 with recent versions of @babel/core #14778

Closed
1 task
literalpie opened this issue Jul 21, 2022 · 2 comments
Labels
i: question outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@literalpie
Copy link

馃捇

  • Would you like to work on a fix?

How are you using Babel?

babel-loader (webpack)

Input code

Minimal reproduction repo

Configuration file name

.babelrc

Configuration

{
  "presets": [],
  "plugins": [
    [
      "polyfill-corejs3",
      {
        "method": "usage-pure"
      }
    ]
  ]
}

Current and expected behavior

Webpack build fails. It should not fail.

Environment

System:
    OS: macOS 12.4
  Binaries:
    Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
  npmPackages:
    @babel/core: 7.16.10 => 7.16.10 
    babel-loader: 8.2.5 => 8.2.5 
    babel-plugin-polyfill-corejs3: 0.5.2 => 0.5.2 
    webpack: 5.73.0 => 5.73.0

I'm also on webpack-cli 4.8.0.

Possible solution

No response

Additional context

Downgrading to @babel/core@7.16.7 or lower fixes the issue.
Upgrading to webpack-cli 4.10.0 also fixes the issue. Because of this, I'm not sure if this is a babel issue, an issue with the plugin, or an issue with Webpack CLI.

I'm mostly making this issue so that if someone else runs into this, they will know they can update webpack-cli to fix the issue.

@babel-bot
Copy link
Collaborator

Hey @literalpie! 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.

@nicolo-ribaudo
Copy link
Member

This is a webpack-cli bug, that didn't allow using dynamic imports in any code that runs during the build project: webpack/webpack-cli#1274

@literalpie literalpie closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2022
@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 Oct 21, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: question 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

4 participants