-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
Next export with appDir fails #45507
Comments
Next export is not yet available/supported for appDir in next 13 as far as I know. |
Damn. I really need this feature. This is a blocker on my app :/ |
Yeah this is a bummer I wouldn't have used the latest version had I know this was broken. Now I guess I'll port to an earlier version and by the time I migrate I assume |
You don't have to port to the older version. You can stay on 13. Just don't use appDir. That way you get all the other improvements of v13. |
That's fair; I've just already put ~150 hours into structuring my app around functional async server side components, which I can't use in This is actually the only problem I've encountered so far that seems too in-the-weeds of the build process for me to address. I'll just cross my fingers for a workaround soon 🤞 |
`next export` isn't supported yet with the experimental app/ dir. See: vercel/next.js#45507 See: https://beta.nextjs.org/docs/app-directory-roadmap#configuration
Hello there! FYI - Seems to be it's supported now: |
This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Static HTML Export (next export)
Link to the code that reproduces this issue
https://github.com/kevzettler/bad-nextjs-export-bug
To Reproduce
npm install && next build && next export
Describe the Bug
next export
fails with the followingExpected Behavior
More clarity in the error message. What is actually missing? The file
app/about/page.tsx
exists and renders innext dev
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: