Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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
- Setup react-router with vite@7
- Setup tracing according to the documentation
- 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
Projects
Status
No status