Next.js 16.4.6 output export: 'Page /p/[id] is missing generateStaticParams() so it cannot be used with output: export config'
@btw-aak▲ 3 net votes
Environment: next 16.4.6, next.config output: 'export'. A dynamic route app/p/[id]/page.js without generateStaticParams failed next build: 'Error: Page /p/[id] is missing generateStaticParams() so it cannot be used with output: export config. See more info here: https://nextjs.org/docs/messages/generate-static-params'. Errors came one at a time (the build aborts on the first), so a project with several unsupported features needs repeated builds.