Unable to start after upgrading to 5.10.2
### Node Version

22.13.0

### NPM/Yarn/PNPM Version

NPM 10.9.2

### Strapi Version

5.10.2

### Operating System

MacOS

### Database

SQLite

### Javascript or Typescript

Javascript

### Reproduction URL

_No response_

### Bug Description

Unable to start development server after upgrading from 5.9.0 to 5.10.2 with the following error:



### Steps to Reproduce

1. Upgrade strapi from 5.9.0 to 5.10.2
2. `npm run strapi develop`

### Expected Behavior

It should work.

### Logs

```shell
✘ [ERROR] No matching export in "node_modules/@strapi/admin/dist/admin/index.mjs" for import "useElementOnScreen"

    node_modules/@strapi/content-manager/dist/admin/chunks/Input-BexkC_pp.mjs:4:23:
      4 │ import { useStrapiApp, useElementOnScreen, createContext, useField, useForm, useNotification, useAPIErrorHandler, useQueryParams, useFocusInputField, InputRenderer as Inp...
        ╵                        ~~~~~~~~~~~~~~~~~~
Error: Build failed with 1 error:
node_modules/@strapi/content-manager/dist/admin/chunks/Input-BexkC_pp.mjs:4:23: ERROR: No matching export in "node_modules/@strapi/admin/dist/admin/index.mjs" for import "useElementOnScreen"
    at failureErrorWithLog (/Users/<redacted>/node_modules/vite/node_modules/esbuild/lib/main.js:1651:15)
    at /Users/<redacted>/node_modules/vite/node_modules/esbuild/lib/main.js:1059:25
    at /Users/<redacted>/node_modules/vite/node_modules/esbuild/lib/main.js:1527:9
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
```
```

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