From 27aa625c0e57af43fe067e8338a18f25d4a14899 Mon Sep 17 00:00:00 2001 From: maro Date: Tue, 25 Aug 2026 23:46:32 +0200 Subject: [PATCH] Fix CI: run next typegen before tsc so route-aware types resolve This Next.js version generates LayoutProps/PageProps/RouteContext into .next/types only via `next dev`, `next build`, or `next typegen` (see node_modules/next/dist/docs .../06-cli/next.md). Typecheck ran `tsc --noEmit` standalone before Build, so those globals didn't exist yet, failing with "Cannot find name 'LayoutProps'". Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/ci.yml | 2 +- .gitea/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 676e44a..ca58314 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: run: npm run lint - name: Typecheck - run: npx tsc --noEmit + run: npx next typegen && npx tsc --noEmit - name: Test run: npm test diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index d4089e2..955825d 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -26,7 +26,7 @@ jobs: - run: apk add --no-cache libc6-compat - run: npm ci - run: npm run lint - - run: npx tsc --noEmit + - run: npx next typegen && npx tsc --noEmit - run: npm test - run: npm run build env: