Skip to content

React-router v7 Setup Instructions Fail With x is not a function #18276

@parrotmac

Description

@parrotmac

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

@sentry/react-router 10.26.0

Framework Version

react-router 7.9.6

Link to Sentry event

No response

Reproduction Example/SDK Setup

Initialize new React-Router project

pnpx create-react-router@latest example-rr-app

Reveal entries

pnpm react-router reveal

Follow instructions 1-2: https://docs.sentry.io/platforms/javascript/guides/react-router/

Diff (excludes lockfile): https://gist.github.com/parrotmac/736830b408dbf5f5cbbb4ea77d9abc09

Steps to Reproduce

  1. Boostrap react-router app
  2. Integrate sentry
  3. Run server
  4. Observe that nothing works

Expected Result

Pages load

Actual Result

All routes return

Unexpected Server Error

TypeError: handleDocumentRequestFunction is not a function

Additional Context

No response

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions