react-router-dom-v5-compat breaks v5 typings #9892
Unanswered
ghost
asked this question in
v5 to v6 Migration
Replies: 2 comments
-
Late to the party here but I just copied the @types/react-router and @types/react-router-dom declarations into my own custom file, I also needed to add an import |
Beta Was this translation helpful? Give feedback.
0 replies
-
In my case, adding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
After I installed
react-router-dom-v5-compat
I got a lot of type errors.I assume it's because
@types/react-router-dom
exports many types fromreact-router
, andreact-router
is at v6.6.2.Before, because
react-router
did not have types, it would resolve them from@types/react-router
but now it defaults to the library.Any way to get around this?
Beta Was this translation helpful? Give feedback.
All reactions