Skip to content

Sentry Integration stop working after v1.48.4 #2164

@mathewcst

Description

@mathewcst

Describe the bug

I've just updated my Tanstack Router from 1.48.4 to 1.49.1.
I use Sentry to collect errors and, as soon as I updated the router version, the app stop working.

Doesn't render any pages or components.

Just throw an error: TypeError: Cannot read properties of undefined (reading 'replace').

Example available on StackBlitz.

Your Example Website or App

https://stackblitz.com/edit/github-pp1nvw?file=src%2Fmain.tsx

Steps to Reproduce the Bug or Issue

  1. Copied the Quick File Based Route example on StackBlitz
  2. Install @sentry/react, @sentry/tracing @sentry/vite-plugin
  3. Configure Sentry.init

Router doesn't work

Expected behavior

Sentry integration with Tanstack Router should work as it was in the previous versions.

Screenshots or Videos

No response

Platform

  • OS: Windows 10
  • Browser: Chrome
  • Version: 127.0.6533.120

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