Skip to content
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

Export Command not supported in NextJS template #74

Open
hunterwilliams opened this issue Oct 2, 2024 · 0 comments
Open

Export Command not supported in NextJS template #74

hunterwilliams opened this issue Oct 2, 2024 · 0 comments

Comments

@hunterwilliams
Copy link

hunterwilliams commented Oct 2, 2024

Seems that the export command was not tested with the NextJS template.

The "next export" command has been removed in favor of "output: export" in next.config.js. Learn more: https://nextjs.org/docs/advanced-features/static-html-export

This was a breaking change in the upgrade from 13.4 -> 14.0. Adding in output: 'export' to next.config.js does not fix the issue either. It will then break here Error occurred prerendering page "/examples". Read more: https://nextjs.org/docs/messages/prerender-error Error: Error for page /examples: pages with getServerSideProps can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export

Version Affected: 1.8.0 (believe even back to 1.6.0)
Date attempted: 2/Oct/2024
Template: NextJs with Rescript 11.1.4 and Rescript Core 1.6.0
OS: MacOS (seems should be irrelevant)

Commit that introduced issue: 751f8b5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant