-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ERR_UNSUPPORTED_DIR_IMPORT #7898
Comments
Reopening as fix was reverted. #7906 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
SWC version 1.79+ omits
/index.js
in imports when compiled, which results in runtime error for this imports:Probably this MR is the cause.
Directory imports are not allowed:
Input code
compiled (swc 1.79):
compiled (swc 1.78):
Playground link
Can't reproduce in playground.
Reprodution repo
SWC Info output
Some resent npx issue doesn't allow to run this, error:
Expected behavior
Compiled code should include
index.js
as it was defined.Actual behavior
Compiled code omits
index.js
.Version
1.79+
Additional context
No response
The text was updated successfully, but these errors were encountered: