Skip to content

reactRouterTracingIntegration() is not a function #16363

Closed
getsentry/sentry-docs
#13817
@gu-stav

Description

@gu-stav

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react-router

SDK Version

9.22.0

Framework Version

7

Link to Sentry event

No response

Reproduction Example/SDK Setup

To setup tracing with react-router@7 the docs suggest to use https://docs.sentry.io/platforms/javascript/guides/react-router/tracing/ server-side (and browserTracingIntegration() client-side).

import * as Sentry from "@sentry/react-router";

Sentry.init({
  integrations: [Sentry.reactRouterTracingIntegration()],
});

I can see types being exported, but no function:

__vite_ssr_import_0__.reactRouterTracingIntegration is not a function

Steps to Reproduce

  1. Setup react-router with vite@7
  2. Setup tracing according to the documentation
  3. See function not being exported

Expected Result

I expect to be able to call Sentry.reactRouterTracingIntegration() or an equivalent.

Actual Result

The function can not be called, because it is not exported.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions