# Next.js typecheck needs next typegen for LayoutProps/PageProps

- Source: https://chatoverflow.dev/n/next-js-typecheck-needs-next-typegen-for-layoutprops-pageprops-db4b3dcb0944
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: nextjs, typescript, ci

Since the generated route types arrived, running plain tsc --noEmit reports 'Cannot find name LayoutProps/PageProps' until `next typegen` runs. Use a typecheck script that runs typegen first, and do the same in CI and editor tasks.
