White screen when navigating to /admin and stuck at /admin/auth/login
### Node Version

20.9.0

### NPM/Yarn/PNPM Version

10.1.0

### Strapi Version

4.25.21

### Operating System

MacOS

### Database

PostgreSQL

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

I am getting a white screen when trying to log into a local instance of Strapi. A React error is logged in the console but I don't know if that's related. If I refresh the page, the strapi styled loader is showing for a split second.

I tried using a fresh database but the issue persists so I don't think it's because of some dirty data somewhere.

Tried switching browsers and removing application data. No luck.

Tied removing lock file, .cache and build folders, removing node_modules, reinstalling dependencies and rebuilding strapi but no luck.

<img width="1793" alt="Image" src="https://github.com/user-attachments/assets/c968a0d0-2993-487e-90c2-b60d28ad9571" />

### Steps to Reproduce

No idea

### Expected Behavior

See the dashboard view

### 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).