create-rescript-app icon indicating copy to clipboard operation
create-rescript-app copied to clipboard

Export Command not supported in NextJS template

Open hunterwilliams opened this issue 4 months ago • 0 comments

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: 751f8b5505190062ce2196cb33b715f95c49bec2

hunterwilliams avatar Oct 02 '24 09:10 hunterwilliams