‘withRouter’ is not exported from ‘react-router-dom’
If you accidentally installed react-router-dom v6 then the withRouter HOC no longer exists. Either revert back to v5 (run npm install -s [email protected]), or roll your own custom withRouter HOC to inject the props you need or convert the components to function components and use the React hooks. Create custom withRouter Higher Order Component From … Read more