-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
Module not found: ESM packages (/path/to/app/page.js) need to be imported. #41865
Comments
Same, I believe it's somehow related to webpack. Using |
@vladshcherbin @rnarkk do you have a reproduction by any chance? |
I get this with the following in {
"type": "module"
} |
@balazsorban44 here's reproduction: https://github.com/vladshcherbin/next-13-esm-error as @kevva mentioned, |
Using |
@vladshcherbin can you try the latest canary (13.0.3-canary.3), it works for me with your reproduction |
@housseindjirdeh thanks for the update. I've also been running into this issue and just tried out the canary build you've mentioned above, however, it still doesn't seem to work for me. (You can try out this example and navigate to the |
@huozhi I've tried |
@vladshcherbin Thanks for confirmation, I'll close this issue as resolved. @schickling it's related to the esm package resolving, it's caused by a different issue. will track yours in #42534 as duplicate issue |
@huozhi thank you for resolving the issue 🤗 |
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. |
Verify canary release
Provide environment information
warn - Latest canary version not detected, detected: "13.0.0", newest: "12.3.2-canary.43".
Please try the latest canary version (
npm install next@canary
) to confirm the issue still exists before creating a new issue.Read more - https://nextjs.org/docs/messages/opening-an-issue
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Here is the error output when I run
npm run dev
orbuild
:Could someone give me direction since I don't know where to start with this bug?
I have enabled the novel
app
directory (experimental: { appDir: true }
) and tried to putpage.js
andlayout.js
files in it.Expected Behavior
Load
page.js
andlayout.js
properly.Link to reproduction
To Reproduce
The text was updated successfully, but these errors were encountered: