Skip to content

Route not found anymore #5888

@lukasbash

Description

@lukasbash

Which project does this relate to?

Router

Describe the bug

After an upgrade to 1.136.5 some of my locations cannot be visited anymore and throw an error in the console:

Uncaught (in promise) Error: No route found for location /images
    at getLocation (useBlocker.tsx:182:17)
    at Object.blockerFnComposed [as blockerFn] (useBlocker.tsx:194:20)
    at tryNavigation (index.ts:146:41)
    at Object.push (index.ts:179:7)
    at RouterCore.commitLocation (router.ts:1898:53)
    at RouterCore.buildAndCommitLocation (router.ts:1945:32)
    at RouterCore.navigate (router.ts:1993:17)
    at useNavigate.tsx:35:21
    at onClick (Navbar.tsx:260:17)
    at floating-ui.react.mjs:3166:88

Yet I do not have found the difference to the routes that work, but the patch version before this just works.

Your Example Website or App

See #5888 (comment)

Steps to Reproduce the Bug or Issue

Just navigating to one of those links does not work anymore. I will provide details when I found out more.

EDIT: #5888 (comment)

Expected behavior

Location matching should not break.

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.136.5
  • OS: macOS
  • Browser: Chrome
  • Browser Version: latest
  • Bundler: vite
  • Bundler Version: 7.2.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