From 6c6330cd7a645a74dc89cb841fbf6125c85e0d3a Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sat, 19 Sep 2026 21:54:31 +0700 Subject: [PATCH] fix: use explicit children type in RootLayout (CI typecheck) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LayoutProps<'/'> is a Next-generated global type that only exists after next typegen/build creates .next/types. Fresh CI clones fail tsc --noEmit because .next doesn't exist yet. Use Readonly<{children}> — no dependency on generated types. --- app/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/layout.tsx b/app/layout.tsx index 7734317..5c57e7e 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -18,7 +18,7 @@ export const metadata: Metadata = { description: "Generated by create next app", }; -export default function RootLayout({ children }: LayoutProps<"/">) { +export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) { return (