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 3 missing .js extension when 'type': 'module' #12378
Comments
Hey @bytestream! 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." |
Fixed by #10862 |
Thank you for the fast reply @nicolo-ribaudo Is there a workaround until that's merged? |
You could try using https://github.com/tleunen/babel-plugin-module-resolver to add the |
I've tried to use the recommended workaround without success. Has anybody else had success with it? Here's my .babelrc file. It is effective at changing other resolve paths when I change what I match against, so the plugin does seem to be doing stuff. It just doesn't seem to catch the problematic imports.
|
No it didn't work for me either. I removed the code that required corejs polyfill 😅 |
I'm having the same issue in my configuration. |
Bug Report
Current behavior
'type': 'module'
is used inpackage.json
and whencorejs: 3
is specified inbabel.config.js
webpack complains about missing.js
extension despite it existing insrc/page.js
. If I comment outcorejs: 3
then the error goes away.I would be incredibly grateful if someone could put me out my misery.
Input Code
https://github.com/bytestream/babel-test
Expected behavior
I expect the code to transpile when using corejs 3.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
babel.config.js
Environment
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: