Skip to content

starter template: NotFoundError was encountered on the route with ID "__root__", but a notFoundComponent #6239

@epicwhale

Description

@epicwhale

Which project does this relate to?

Router

Describe the bug

The starter template has this error, would be good for the starter template to be Warning free in the way it's setup.

bun create @tanstack/start@latest .
bun --bun run dev

[vite] (ssr) page reload src/routes/index.tsx
Warning: A notFoundError was encountered on the route with ID "__root__", but a notFoundComponent option was not configured, nor was a router level defaultNotFoundComponent configured. Consider configuring at least one of these to avoid TanStack Router's overly generic defaultNotFoundComponent (<p>Not Found</p>)

Your Example Website or App

Steps to Reproduce the Bug or Issue

bun create @tanstack/start@latest .
bun --bun run dev

Visit url

Expected behavior

No warnings. Clean starter.

Screenshots or Videos

No response

Platform

"dependencies": {
    "@tailwindcss/vite": "^4.0.6",
    "@tanstack/react-devtools": "^0.7.0",
    "@tanstack/react-router": "^1.132.0",
    "@tanstack/react-router-devtools": "^1.132.0",
    "@tanstack/react-router-ssr-query": "^1.131.7",
    "@tanstack/react-start": "^1.132.0",
    "@tanstack/router-plugin": "^1.132.0",
    "lucide-react": "^0.561.0",
    "nitro": "latest",
    "react": "^19.2.0",
    "react-dom": "^19.2.0",
    "tailwindcss": "^4.0.6",
    "vite-tsconfig-paths": "^6.0.2"
  },

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions