TanStack / TanStack/router

notFoundComponent doesn’t appear on live docs pages for invalid routes

Open
#5,954 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.1k
Forks
1.9k
Avg merge
1d 20h
Merged PRs (30d)
143

Description

Which project does this relate to?

Router

Describe the bug

When visiting a non-existent page on the TanStack Router/Start documentation website (e.g., https://tanstack.com/router/abc), the page does not display a proper "Page Not Found" UI.

Your Example Website or App

https://tanstack.com/router/abc

Steps to Reproduce the Bug or Issue
  1. Go to https://tanstack.com/router/abc (or any invalid route on the docs site)
  2. Observe that the page does not show a "not found" message or component.
Expected behavior

A clear "Page not found" UI should be displayed ideally using the notFoundComponent defined in the docs.

Screenshots or Videos

No response

Platform
  • Router / Start Version: [e.g. 1.121.0]
  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Browser Version: [e.g. 91.1]
  • Bundler: [e.g. vite]
  • Bundler Version: [e.g. 7.0.0]
Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the invalid-route behavior at https://tanstack.com/router/abc and inspect the documentation site's route configuration, focusing on where the documented notFoundComponent is defined and applied. Confirm the expected Page Not Found UI and identify the relevant route entry or test before making a change; done means invalid live documentation URLs display that UI.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.