error when trying to open the content-manager after upgrading form v5.1.0 to v5.9.0

```
Error: useMatch() may be used only in the context of a <Router> component.
    at invariant (https://api.kareem-adel.com/admin/node_modules/.strapi/vite/deps/chunk-WHKY4GB5.js?v=5e1f14e1:209:11)
    at useMatch (https://api.kareem-adel.com/admin/node_modules/.strapi/vite/deps/chunk-WHKY4GB5.js?v=5e1f14e1:3828:34)
    at Layout (https://api.kareem-adel.com/admin/node_modules/.strapi/vite/deps/layout-fQk1rMk9-JVRI36Z4.js?v=cb234fbb:479:28)
    at renderWithHooks (https://api.kareem-adel.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=cb234fbb:11568:26)
    at mountIndeterminateComponent (https://api.kareem-adel.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=cb234fbb:14946:21)
    at beginWork (https://api.kareem-adel.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=cb234fbb:15934:22)
    at beginWork$1 (https://api.kareem-adel.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=cb234fbb:19781:22)
    at performUnitOfWork (https://api.kareem-adel.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=cb234fbb:19226:20)
    at workLoopSync (https://api.kareem-adel.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=cb234fbb:19165:13)
    at renderRootSync (https://api.kareem-adel.com/admin/node_modules/.strapi/vite/deps/chunk-IYHTQODQ.js?v=cb234fbb:19144:15)
```
      