From 4b3ba70276d5a37fef031b745ffc59233ee5dbd9 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Sat, 29 Aug 2026 23:01:50 +0000 Subject: [PATCH 1/2] fix: Sentry reporting handled chunk load errors --- src/router.tsx | 3 ++- src/utils/stale-app-reload.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/router.tsx b/src/router.tsx index 7bcb6a98d..0b015066e 100644 --- a/src/router.tsx +++ b/src/router.tsx @@ -5,7 +5,7 @@ import { DefaultCatchBoundary } from './components/DefaultCatchBoundary' import { NotFound } from './components/NotFound' import { QueryClient } from '@tanstack/react-query' import * as Sentry from '@sentry/tanstackstart-react' -import { installStaleAppReloadHandlers } from './utils/stale-app-reload' +import { installStaleAppReloadHandlers, staleAppErrorPatterns } from './utils/stale-app-reload' import { redactByokRequestHeaders } from './utils/sentry-redaction' if (typeof document !== 'undefined') { @@ -14,6 +14,7 @@ if (typeof document !== 'undefined') { Sentry.init({ dsn: 'https://ac4bfc43ff4a892f8dc7053c4a50d92f@o4507236158537728.ingest.us.sentry.io/4507236163649536', sendDefaultPii: true, + ignoreErrors: staleAppErrorPatterns, // Performance Monitoring tracesSampleRate: 1.0, // Capture 100% of the transactions // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled diff --git a/src/utils/stale-app-reload.ts b/src/utils/stale-app-reload.ts index 6dabf188b..2dc204486 100644 --- a/src/utils/stale-app-reload.ts +++ b/src/utils/stale-app-reload.ts @@ -6,7 +6,7 @@ import { const staleAppReloadKey = 'tanstack-stale-app-reload-at' const staleAppReloadWindowMs = 10_000 -const staleAppErrorPatterns = [ +export const staleAppErrorPatterns = [ 'ChunkLoadError', 'Failed to fetch dynamically imported module', 'Importing a module script failed', From 8cd3cda749c0490b23c82955ef0435c1097489eb Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 29 Aug 2026 23:02:42 +0000 Subject: [PATCH 2/2] ci: apply automated fixes --- src/router.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/router.tsx b/src/router.tsx index 0b015066e..390d7af22 100644 --- a/src/router.tsx +++ b/src/router.tsx @@ -5,7 +5,10 @@ import { DefaultCatchBoundary } from './components/DefaultCatchBoundary' import { NotFound } from './components/NotFound' import { QueryClient } from '@tanstack/react-query' import * as Sentry from '@sentry/tanstackstart-react' -import { installStaleAppReloadHandlers, staleAppErrorPatterns } from './utils/stale-app-reload' +import { + installStaleAppReloadHandlers, + staleAppErrorPatterns, +} from './utils/stale-app-reload' import { redactByokRequestHeaders } from './utils/sentry-redaction' if (typeof document !== 'undefined') {