types/react-router-dom] type Location is not generic in useLocation · DefinitelyTyped DefinitelyTyped · Discussion #60159 · GitHub
types/react-router-dom]: withRouter HoC produces compile error: "Property 'match' is missing in type '{}'." · Issue #17181 · DefinitelyTyped/DefinitelyTyped · GitHub
![reactjs - Building React app for production throwing error in the react router dom v6.4 library - Stack Overflow reactjs - Building React app for production throwing error in the react router dom v6.4 library - Stack Overflow](https://i.stack.imgur.com/DiGBz.png)