Skip to content

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

Closed

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

Activity

  1. coderabbitai commented on Dec 28, 2025

    @coderabbitai
    Contributor

    📝 CodeRabbit Plan Mode

    Generate an implementation plan and prompts that you can use with your favorite coding agent.

    • Create Plan
    Examples

    🔗 Similar Issues

    Possible Duplicates

    🔗 Related PRs

    #5686 - fix(router-core): Catch errors thrown during hydrate [merged]
    #5816 - docs(solid-start): start-bun example [merged]
    #5825 - docs(solid-router): authenticated-routes example [merged]
    #5847 - docs(solid-start): start-large example [merged]
    #5849 - docs(solid-start): start-tailwind-v4 [merged]

    👤 Suggested Assignees

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. schiller-manuel commented on Dec 28, 2025

    @schiller-manuel
    Collaborator

    this is caused by the chrome devtools requesting a file that does not exist

    see https://gebna.gg/blog/annoying-well-known-appspecific-com-chrome-devtools-json-request

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions