Cannot read properties of null (reading 'useContext') when trying to launch content manager first time
### Node Version

20.19.0

### NPM/Yarn/PNPM Version

10.8.2

### Strapi Version

5.11.1

### Operating System

Linux (RedHat/CentOS)

### Database

Strapi Cloud

### Javascript or Typescript

Javascript

### Reproduction URL

_No response_

### Bug Description

When visit /admin/settings or /admin/content-manager i get this:

pretty much fresh install. I created one new collection type

 Using postgres. On Oracle Linux 8.9


```
TypeError: Cannot read properties of null (reading 'useContext')
    at Object.useContext (https://strapi.thetyee.ca/admin/node_modules/.strapi/vite/deps/chunk-MADUDGYZ.js?v=0f68b02f:1062:29)
    at useInRouterContext (https://strapi.thetyee.ca/admin/node_modules/.strapi/vite/deps/chunk-TUXTO2Z5.js?v=0f68b02f:3818:16)
    at useMatch (https://strapi.thetyee.ca/admin/node_modules/.strapi/vite/deps/chunk-TUXTO2Z5.js?v=0f68b02f:3833:4)
    at Layout (https://strapi.thetyee.ca/admin/node_modules/.strapi/vite/deps/Layout-B2bTkm3u-QVALLTTL.js?v=ac5ac3f9:290:17)
    at renderWithHooks (https://strapi.thetyee.ca/admin/node_modules/.strapi/vite/deps/chunk-FOD4ENRR.js?v=ac5ac3f9:11548:26)
    at mountIndeterminateComponent (https://strapi.thetyee.ca/admin/node_modules/.strapi/vite/deps/chunk-FOD4ENRR.js?v=ac5ac3f9:14926:21)
    at beginWork (https://strapi.thetyee.ca/admin/node_modules/.strapi/vite/deps/chunk-FOD4ENRR.js?v=ac5ac3f9:15914:22)
    at beginWork$1 (https://strapi.thetyee.ca/admin/node_modules/.strapi/vite/deps/chunk-FOD4ENRR.js?v=ac5ac3f9:19753:22)
    at performUnitOfWork (https://strapi.thetyee.ca/admin/node_modules/.strapi/vite/deps/chunk-FOD4ENRR.js?v=ac5ac3f9:19198:20)
    at workLoopSync (https://strapi.thetyee.ca/admin/node_modules/.strapi/vite/deps/chunk-FOD4ENRR.js?v=ac5ac3f9:19137:13)
```
      

### Steps to Reproduce

1) attempt to visit /admin/settings or /admin/content-manager

### Expected Behavior

land on content manager or settings

### Logs

```shell

```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).