I’ve recently upgraded the okta react SDK to v2.0.0, and have followed the migration instructions from 1X. All is ‘almost’ working well, however I’m receiving the below error. Per the dependencies listed in the documentation, I’m using appropriate version of both react and react-router-dom.
SecureRoute.js:32 Uncaught TypeError: (0 , _reactRouterDom.useHistory) is not a function
at RequireAuth (SecureRoute.js:32)
I wanted to check here for a solution prior to submitting a bug report.