Skip to content

Export Command not supported in NextJS template #74

Closed
@hunterwilliams

Description

@hunterwilliams

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions