Skip to content

Error after upgrading from 5.1.3 to 6.0.0 #238

Description

Initial page loads and the dev tools are active, but seem buggy. For example if I click on the route diagram, it flashes the "real" diagram and then reverts to a single dot with "Root". As soon as I try to navigate, I get:

Application Error
TypeError: Cannot read properties of undefined (reading 'add')
    at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12939:44
    at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
    at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
    at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
    at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
    at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
    at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
    at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12951:13
    at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12929:5
    at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12932:7

Revert to 5.1.3 and everything works fine again.

React Router 7.10.1
Vite 7.2.7
React 18.3.1

Spa mode

Activity

  1. IgnisDa commented on Dec 10, 2025

    @IgnisDa

    getting the same error

  2. blandis-turnberrysolutions commented on Dec 10, 2025

    @blandis-turnberrysolutions
    Author

    I've tried to create a minimal repro and it's working fine there so far. Must be an interaction with a dependency or some specific feature being used in the full app. Adding things one at a time to see when it breaks.

  3. AlemTuzlak commented on Jan 13, 2026

    @AlemTuzlak
    Contributor

    this sounds like a duplicate of this one:
    #245

  4. c43721 commented on Jan 13, 2026

    @c43721

    @blandis-turnberrysolutions I have found a repo and reported it in #245

  5. c43721 commented on Jan 14, 2026

    @c43721

    @blandis-turnberrysolutions This should be fixed the next version, and I confirmed #246 fixes this issue. Can you confirm?

  6. blandis-turnberrysolutions commented on Jan 15, 2026

    @blandis-turnberrysolutions
    Author

    Updated to 6.2.0 and I don't get the crash/error anymore, but I still see the behavior where the route list or diagram flashes the "real" one and then reverts to an empty list or a single dot labeled "Root"

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