Version 7.23.0: React Router's encodeLocation
is missing in Sentry Router object
#6421
Closed
3 tasks done
Labels
Package: react
Issues related to the Sentry React SDK
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/react
SDK Version
7.23.0
Framework Version
React18, react-router-dom v6.4.4
Link to Sentry event
No response
Steps to Reproduce
router
object (of typeRouter
), you will then use it in aRouterProvider
component as suchSee docs
Expected Result
No type errors on the RouterProvider
Actual Result
Observe the type error

It seems like the type error is due to a new introduction of
encodeLocation
on the Router type in React Router DOM.I believe it was added in this PR. Hope this helps :)
The text was updated successfully, but these errors were encountered: