Skip to content

bug(web): website pages fall back to TanStack's English "Something went wrong!" when a page or its content fails to load #4679

Closed

Description

@yannickmonney

Summary

The website router sets only defaultNotFoundComponent (services/web/app/router.tsx:9, app/entry-server.tsx:39). No website route defines an errorComponent, and nothing listens for vite:preloadError.

So any route error renders TanStack Router's built-in ErrorComponent (@tanstack/[email protected], dist/esm/CatchBoundary.js:48–87). It appears in place of the page content and shows:

  • the English text "Something went wrong!", also on de and fr pages, outside the site's design system;
  • a "Show Error" toggle that reveals the raw error.message, for example Failed to fetch dynamically imported module: …/assets/….js;
  • no reload or retry action, and no link back.

When this happens

Route errors are realistic on the website:

  • Stale deploys. The site builds with tanstackRouter({ autoCodeSplitting: true }) (services/web/vite.config.ts:118), so client navigation lazy-loads route chunks. After a deploy replaces the hashed assets, an open tab's next navigation fails to load its chunk. Bug: old-bundle version skew breaks lazy routes after every demo deploy — no vite:preloadError handler, no recovery for removed-function calls #3089 tracks this same class for the platform app only.
  • Degraded connections. The compare and use-case routes (index and slug pages, with and without the language prefix) load their content in the route loader. loadMarketingContent calls fetch (services/web/lib/content/client.ts:72), for example from routes/$lang/use-cases/$slug.tsx:10–14. A failed fetch throws into the same fallback.

The repository already solved this elsewhere:

  • the platform replaces this fallback with a localized component that offers recovery: services/platform/app/router.tsx:76–78, GlobalErrorDisplay with reset;
  • the website already replaced the bare not-found screen with its localized NotFoundPage.

Expected

Triage

  • Severity: low to medium. Every website page is affected, but only when a load fails.
  • Owner: the website maintainers.
  • Review A cells: website UX-CLARITY and REL-MANUAL for web.compare and web.use-cases, which fetch in loaders, and for every lazily loaded web.* route. LOCALE is affected by the English fallback.
  • Evidence: static, plus the published library source. Not reproduced live, because the local stack is blocked. Found by Review A (TALE-358) at the 2026-10-10 00:15 Europe/Zurich occurrence.

Activity

  1. yannickmonney commented on Oct 13, 2026

    @yannickmonney
    ContributorAuthor

    Addendum (Review A, TALE-358, 2026-10-13 04:15 Zurich occurrence): the docs and design-system docs sites have the same gap. main 715dc15ad.

    • services/docs/app/router.tsx:12-17 and services/ui-docs/app/router.tsx:12-17 create their routers without a defaultErrorComponent, and no route sets an errorComponent.
    • Both page loaders await lazily loaded page bodies: services/docs/app/routes/$.tsx (through lib/content/loader.ts) and services/ui-docs/app/routes/docs.$.tsx.
    • The docs search dialog is lazy behind <Suspense fallback={null}> with no error boundary (packages/ui/src/components/docs/docs-layout.tsx).
    • Effect: a reader with a tab open from before a deploy who clicks a sidebar link, or opens search, gets TanStack's built-in English error fallback instead of a translated message with Reload, on /de and /fr pages too. This is the same root cause as the website case above, so it fits one shared fix in the @tale/ui docs frame.

    This is static reading; I didn't run it.

  2. added
    agent-ready
    bug
    on Oct 29, 2026
  3. added a commit that references this issue on Oct 31, 2026
    ebf36d8
  4. added a commit that references this issue on Oct 31, 2026
    7d62f04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions