Repository navigation
Closed
Labels
Description
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 exampleFailed 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.
loadMarketingContentcallsfetch(services/web/lib/content/client.ts:72), for example fromroutes/$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,GlobalErrorDisplaywithreset; - the website already replaced the bare not-found screen with its localized
NotFoundPage.
Expected
- A website
defaultErrorComponentthat:- uses the site layout and localized text;
- names the cause in plain words (the page could not be loaded);
- offers Reload or Try again, plus a link home;
- never shows the raw error message.
- A
vite:preloadErrorhandler for the stale-chunk case: a one-shot reload with a loop guard, as Bug: old-bundle version skew breaks lazy routes after every demo deploy — no vite:preloadError handler, no recovery for removed-function calls #3089 proposes for the platform. - Regression tests:
- a route test that makes a content loader throw and expects the localized error page in en/de/fr with a working retry;
- a test for the preload-error handler.
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.compareandweb.use-cases, which fetch in loaders, and for every lazily loadedweb.*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
yannickmonney commentedon Oct 13, 2026
Addendum (Review A, TALE-358, 2026-10-13 04:15 Zurich occurrence): the docs and design-system docs sites have the same gap.
main715dc15ad.services/docs/app/router.tsx:12-17andservices/ui-docs/app/router.tsx:12-17create their routers without adefaultErrorComponent, and no route sets anerrorComponent.services/docs/app/routes/$.tsx(throughlib/content/loader.ts) andservices/ui-docs/app/routes/docs.$.tsx.<Suspense fallback={null}>with no error boundary (packages/ui/src/components/docs/docs-layout.tsx)./deand/frpages too. This is the same root cause as the website case above, so it fits one shared fix in the@tale/uidocs frame.This is static reading; I didn't run it.
fix(web): show a localized error page when a page fails to load
fix(web): show a localized error page when a page fails to load
docs: describe the train's three later fixes in the v0.5.95 notes
docs: amend the v0.5.95 release notes
docs: amend the v0.5.95 release notes