-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[@babel/preset-env] Provides broken warnings on compile with useBuiltIns #9751
Comments
Hey @bradennapier! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
It's probably a bug with one of your dependencies (you can find it in the stack trace), which is importing EDIT: It is a bug with the |
Sweet, thanks! Makes sense and yeah that is a private package. Thanks! |
Note to anyone doing this - I had to delete my node_modules when changing to core-js 3 or i got the following errors:
Guessing it is a cache issue, not quite sure. |
Yeah, that is our fault 😛 It's fixed on master and it will be in the next release. In the meantime, as you mentioned, reinstalling node_modules should be enough. |
Thanks, easy enough to fix :) . Appreciate all you guys do! |
|
concretely, the set of options sent to
along with the dependency in |
core-js@3 is a big new release with tighter integration into babel, worth reading the blog post: https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md
|
Came here looking for help on this one for Symfony Webpack throwing this warning. In Symfony webpack.config.js add the following:
This appears to have removed the warning. |
Bug Report
Current Behavior
When using
useBuiltIns
it is giving this warning. So I changed and used core-js 3.0.0 since it seemed like that was an option based on it saying i could run that.I added
corejs
to the config stating 3.0.0, but then it just errors and no longer works:Note that installing and using corejs 2 does work - so this is just reporting about the fact its confusing it seems to indicate support of 3.0.0 when it doesnt have it
Expected behavior/code
be more clear that i should not use core-js@3 if it is not supported / remove that entire set of yarn commands to not confuse people.
Babel Configuration (.babelrc, package.json, cli command)
Environment
The text was updated successfully, but these errors were encountered: