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
No "exports" main resolved in @babel/helper-compilation-targets/package.json with Node 12.17.0 #11615
Comments
Hey @JamesSingleton! 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." |
@JamesSingleton I was unable to reproduce locally with the exact same babel config and the following dependencies
Do you have an example of the code you are attempting to transpile? |
@MylesBorins, two repos that I know of that are exhibiting this behavior right now are |
Looks like the issue was an out of date version of helper-compilation-target in the package-lock. I've opened a PR that should fix this. Once that has confirmed to fix stuff I think this issue can be closed. |
@MylesBorins thanks for digging in! |
@MylesBorins what is weird is when I did |
@MylesBorins going to close this issue, thanks for taking the time to help me out! |
FTR I had to blow away the entire lockfile and run |
In my case, the
|
For people trying to deal with this one: I had to not only delete the lock file, but also delete the whole node-modules directory (though deleting the specific package would probably have worked as well). THEN do an 'npm install'. |
Bug Report
I know #11216 mentions a similar issue, but that is with Node 13, this is with the newly released 12.17.0.
Current behavior
Node just released 12.17.0 and now running
"build": "babel src -d ./",
with the following deps (also installed the latest versions as well and still had the issue)results in:
Input Code
Expected behavior
It should build properly without error as it does on Node 12.16.3.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
babel.config.js
Environment
Additional context
It works fine on Node 12.16.3.
The text was updated successfully, but these errors were encountered: