Skip to content

Property 'hasNotFoundMatch' does not exist on type Router #3734

Closed
@mskubak

Description

@mskubak

Which project does this relate to?

Router

Describe the bug

Since version 1.113.0 I got error message "Property 'hasNotFoundMatch' does not exist on type Router" on Typescript (v5.7.3) transpile. Build with vite works fine, so I guess it could be a missing declaration.

Your Example Website or App

https://tanstack.com/router/latest/docs/framework/react/guide/ssr#all-together-now

Steps to Reproduce the Bug or Issue

From this example: https://tanstack.com/router/latest/docs/framework/react/guide/ssr#all-together-now

const router = createRouter()

...

await router.load()

response.statusCode = router.hasNotFoundMatch() ? 404 : 200

Expected behavior

I expected that method hasNotFoundMatch exist on type Router.

Screenshots or Videos

No response

Platform

  • OS: all
  • Browser: all
  • Version: all

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    typesChanges to the typescript types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions