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
After upgrading babel core, preset-env, babel-loader, preset-react, preset-typescript export from not working #11308
Comments
Hey @brneto! 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." |
|
I'm sorry but this is "working as intended". When using ESLint (without Babel), the ESLint parser produces an AST which matches the ESTree specification. When using Babel's parser (without ESLint), there is an option ( When using Since However, For this reason, I suggest asking in the As a workaround, add this to your "resolutions": {
"@babel/parser": "~7.8.0"
} it will force the older parser version, which doesn't respect the ESTree format (because it wasn't defined yet). |
@nicolo-ribaudo, would have something I could do in meantime to stop this issue in my project? Some workaround? |
Yes! I edited the end of my comment a few minutes ago (maybe you missed it) |
Bug Report
After updating the following dependencies ESLint started to complains about all imports from export-from files:
@babel/core: 7.9.0
@babel/preset-env: 7.9.1
@babel/preset-react: 7.9.0
@babel/preset-typescript: 7.9.0
I would like to work on a fix!
Current Behavior
When I run ESLint src, it throws a "not found in" error the message.
Input Code
Expected behavior/code
I expect ESLint recognize those import without any complaints.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
babel.config.js
Environment
Possible Solution
No idea.
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: