From 5d23df4e35f9a867f084acb13eeee42b65692cfb Mon Sep 17 00:00:00 2001 From: Ray <153027766+ramonclaudio@users.noreply.github.com> Date: Wed, 22 Apr 2026 02:56:23 -0400 Subject: [PATCH] fix(templates): add notFoundComponent to start root route (#10369) --- templates/start-app/src/routes/__root.tsx | 6 ++++++ templates/start-monorepo/apps/web/src/routes/__root.tsx | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/templates/start-app/src/routes/__root.tsx b/templates/start-app/src/routes/__root.tsx index c6988c007..ea8b325c4 100644 --- a/templates/start-app/src/routes/__root.tsx +++ b/templates/start-app/src/routes/__root.tsx @@ -25,6 +25,12 @@ export const Route = createRootRoute({ }, ], }), + notFoundComponent: () => ( +
+

404

+

The requested page could not be found.

+
+ ), shellComponent: RootDocument, }) diff --git a/templates/start-monorepo/apps/web/src/routes/__root.tsx b/templates/start-monorepo/apps/web/src/routes/__root.tsx index 259f4a49e..33e2a8c10 100644 --- a/templates/start-monorepo/apps/web/src/routes/__root.tsx +++ b/templates/start-monorepo/apps/web/src/routes/__root.tsx @@ -23,6 +23,12 @@ export const Route = createRootRoute({ }, ], }), + notFoundComponent: () => ( +
+

404

+

The requested page could not be found.

+
+ ), shellComponent: RootDocument, })