getsentry / getsentry/sentry-javascript

TypeError: dispatcher.getOwner is not a function on RR7+React19

Open
#17,278 9 comments 7 reactions 0 assignees View on GitHub
Bug
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
523

Description

[https://discord.com/channels/621778831602221064/1400566232754688161/1400566232754688161](https://discord.com/channels/621778831602221064/1400566232754688161/1400566232754688161)

> using sentry/react-router 10.0.0, react router 7.5.3 and react 19.1.0 i get this error in the prod build. any ideas what could be going wrong? some sort of react version mismatch?

Works after you set `NODE_ENV=production`

Related issue: [https://github.com/remix-run/react-router/issues/12138](https://github.com/remix-run/react-router/issues/12138)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.