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

core-js definitions not fully injected with useBuiltIns: usage #10910

Closed
piranna opened this issue Dec 23, 2019 · 2 comments · Fixed by #10930
Closed

core-js definitions not fully injected with useBuiltIns: usage #10910

piranna opened this issue Dec 23, 2019 · 2 comments · Fixed by #10930
Labels
Has PR i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env

Comments

@piranna
Copy link

piranna commented Dec 23, 2019

Bug Report

Current Behavior

When using useBuiltIns: usage with core-js to add support for Promise.any(), I get a TypeError: getBuiltIn(...) is not a constructor error. Seems it's due the fact babel is not adding the esnext.aggregate-error require in transpiled code. By changing useBuiltIns to entry and setting by hand both core-js/modules/esnext.aggregate-error and core-js/modules/esnext.promise.any requires, transpilation works correctly. Seems to be related to #10883. More details at zloirock/core-js#737.

Environment
System:
OS: Linux 5.3 Ubuntu 19.10 (Eoan Ermine)
Binaries:
Node: 13.3.0 - /usr/bin/node
npm: 6.13.1 - /usr/bin/npm
npmPackages:
@babel/cli: ^7.7.7 => 7.7.7
@babel/preset-env: ^7.7.7 => 7.7.7
babel-eslint: ^10.0.3 => 10.0.3
babel-jest: ^24.9.0 => 24.9.0
eslint: ^6.8.0 => 6.8.0

@babel-bot
Copy link
Collaborator

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

@piranna
Copy link
Author

piranna commented Dec 27, 2019

Thank you! :-D

@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 Mar 28, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Has PR i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants