Skip to content

dev-tool crashing with "path is undefined" (zen browser) #3498

Closed

Description

@nktnet1

Which project does this relate to?

Router

Describe the bug

Tanstack router dev tool is crashing whenever I make a change to certain files with the error

path is not defined

and other errors unrelated to my applications:

Each child in a list should have a unique "key" prop.
Check the render method of `RouteComp`. See https://react.dev/link/warning-keys for more information.

zenbrowser-inspect-errors

Your Example Website or App

https://github.com/nktnet1/rt-stack

Steps to Reproduce the Bug or Issue

  1. Set up the project

    pnpm dlx create-turbo@latest -m pnpm -e https://github.com/nktnet1/rt-stack example-project
    
    cd example-project
    pnpm install
    pnpm env:copy-example
    
    # Start a local postgres instance in the background (e.g. using docker)
    docker compose up db --detach
    
    # Push drizzle schema to your database
    pnpm db:push
  2. Start the dev server and open http://localhost:8085/register in your browser

    pnpm dev
    
  3. Register an account and go to the posts page. Create a new post.

  4. Make any edits in ./apps/web/src/routes/_protected/posts/index.lazy.tsx and save the file.

  5. Try hovering your mouse on the created post (or click on it). Observe the crash.

Expected behavior

Should not crash, similar to when there is no dev tools enabled in the video.

Screenshots or Videos

tanstack-router-dev-tools-crash.webm

Platform

Tested on:

  • OS:
    • MacOS
    • Linux (Arch)
  • Browser:
    • Zen Browser (firefox-based)
  • Version
    '@tanstack/react-router': ^1.109.2
    '@tanstack/router-devtools': ^1.109.2
    

Additional context

This is a monorepo (turborepo) - unsure if relevant.
I wasn't able to reproduce it on a freshly created tanstack router project (not turborepo).


Update: can't reproduce on Firefox/Chrome either - potential issue with Zen Browser?

Activity

  1. changed the title [-]dev-tool[/-] [+]dev-tool crashing on file changes[/+] on Feb 21, 2025
  2. changed the title [-]dev-tool crashing on file changes[/-] [+][bug] dev-tool crashing on file changes with "path is undefined"[/+] on Feb 21, 2025
  3. changed the title [-][bug] dev-tool crashing on file changes with "path is undefined"[/-] [+][bug] dev-tool crashing with "path is undefined" (zen browser)[/+] on Feb 21, 2025
  4. changed the title [-][bug] dev-tool crashing with "path is undefined" (zen browser)[/-] [+]dev-tool crashing with "path is undefined" (zen browser)[/+] on Feb 21, 2025
  5. nktnet1 commented on Feb 24, 2025

    @nktnet1
    Author

    Fixed by updating Tanstack Router + Dev Tools (v1.111.3, though uncertain if this was what fixed it) and "forget this page" on localhost afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions