-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Getting weird error - Use the babel-core
package not babel
.
#5506
Comments
Hey @ORESoftware! 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 |
babel-core
package not babel
.
This error message is returned when you import |
@aaronang ok thanks, so I should not import |
@ORESoftware Nope, you should import |
Thanks, but it says "use babel-core instead of babel". It does not say "use babel-core instead of babel-cli" Right? There used to be a babel module and there is a babel-cli module so the error message is confusing. |
Sure, let me first verify that it works |
Is there some documentation that shows that babel-cli is deprecated in favor of babel-core? |
@ORESoftware I already made a PR for it. It is not deprecated, it is just not meant for use in a programmatic manner. |
You mean it's for internal use and not for developers to install directly? |
@ORESoftware It is meant for external use. In specific, the package enables developers to use the CLI: https://babeljs.io/docs/usage/cli/. So you do need it in |
babel-cli was never intended to be used programmatically, |
Just wondering why I see this error:
it's coming out of babel-cli
these are the only babel packages I am loading/requiring:
seems like a weird error to me
The text was updated successfully, but these errors were encountered: