Skip to content

Sentry.reactRouterV6BrowserTracingIntegration is not a function #10528

@Xhale1

Description

@Xhale1

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react

SDK Version

7.100.0

Framework Version

React 18.2.0

Link to Sentry event

No response

SDK Setup

Sentry.init({
  dsn: "[ redacted ]",
  integrations: [
    Sentry.reactRouterV6BrowserTracingIntegration({
      useEffect,
      useLocation,
      useNavigationType,
      createRoutesFromChildren,
      matchRoutes,
      stripBasename: true,
    }),
  ],

  tracesSampleRate: 0.1,

  tracePropagationTargets: [
    // ...
  ],

  replaysSessionSampleRate: 0.01,
  replaysOnErrorSampleRate: 1.0,

  ignoreErrors: [
    "ResizeObserver loop completed with undelivered notifications.",
  ],
})

Steps to Reproduce

  1. Update from 7.99.x to 7.100.0
  2. Follow migration guide for browser tracing
  3. Swap 'new Sentry.BrowserTracing({ ... })' for Sentry.reactRouterV6BrowserTracingIntegration({ ... })
  4. Launch Vite dev server
  5. Observe Uncaught TypeError: Sentry.reactRouterV6BrowserTracingIntegration is not a function in browser console

Expected Result

No error

Actual Result

Uncaught TypeError: Sentry.reactRouterV6BrowserTracingIntegration is not a function at main.tsx:x:y

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: reactIssues related to the Sentry React SDK

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions