-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Lack of ESM entry-points prevents correct default import resolution #30402
Comments
Please verify that your issue can be recreated with Why was this issue marked with the
|
This issue has been automatically closed because it wasn't verified against next@canary. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you. |
I believe this issue is not fixed on the canary and should be reopened. |
Yeah, @jankaifer, why would you flag this when I linked a repro? It was too much to clone it and check latest canary yourself? There are users reporting and experiencing the bug in this thread. [REDACTED] close-oriented goals are bad. ESM entry-points will be a little annoying but the band-aid will have to come off eventually. cc also @balazsorban44, would recommend reopening. |
Hey, sorry, this was my bad. Reopening. |
We understand the frustration, but keep in mind that there was no unexplained action taken here. You had a 30 days notice before the issue was closed, and a detailed reasoning was given as well as why it happened and what you can do to prevent the issue from being closed. @ctjlewis, please refrain from making personal comments. The comment
is an unhelpful comment in every sense that creates unnecessary negativity towards maintainers. Also, refrain from tagging other (unrelated) core maintainers for gaining extra attention, as pointed out. I suggest reading #30402 (comment) carefully. The ask about checking At the very least, we can agree that there was no bad intent here, the issue is now re-opened, now let's focus on what matters. 💚 |
This issue has been automatically closed because it wasn't verified against next@canary. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you. |
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. |
What version of Next.js are you using?
latest
What version of Node.js are you using?
14.x
What browser are you using?
Chrome
What operating system are you using?
Linux
How are you deploying your application?
next dev / next start
Describe the Bug
I am consuming
next/image
for an ESM library, but because it is only exported as CJS, it is not possible to resolve the default import correctly. For example:Expected Behavior
It is not fun, but ideally Next would ship ESM entry-points, perhaps at
next/package.mjs
, for consumption by third-party libraries or other ESM contexts (see microsoft/TypeScript#44501).To Reproduce
See https://github.com/ctjlewis/default-resolution-bug.
The text was updated successfully, but these errors were encountered: