Dependency Version Mismatch Causes Inconsistent Builds and Errors
### Node Version

20.14.0

### NPM/Yarn/PNPM Version

NPM 10.7.0

### Strapi Version

5.6.0

### Operating System

Linux (Debian/Ubuntu)

### Database

PostgreSQL

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

When installing Strapi v5.6.0, some dependencies from Strapi packages (e.g., `@strapi/admin` and its sub-dependencies) resolve to v5.7.0 (currently latest) instead of v5.6.0. This version mismatch results in inconsistent builds and runtime errors, as the application ends up with mixed versions of core Strapi packages. As a result of this bug, the Content Manager tab fails to load, displaying the following error:

**Error**: `useContentManagerInitData` must be used within `StrapiApp`.

This issue is likely caused by mismatched versions of `@strapi/admin` and its related dependencies, leading to incompatible contexts being used at runtime.

### Steps to Reproduce

1. Create a new Strapi project
Run the following command to create a new Strapi project with version `5.6.0`:
`npx create-strapi-app@5.6.0 my-project --quickstart`
`cd my-project`

2. **[Important step]** Add following dependencies to the `package.json` file (maybe the problem is in one of these packages):
```json
    "@strapi/email": "5.6.0",
    "@strapi/plugin-graphql": "5.6.0",
    "@strapi/provider-upload-aws-s3": "5.6.0",
    "@strapi/provider-upload-local": "5.6.0",
    "pg": "8.8.0",
```

3. Remove `node_modules`, `package-lock.json` and reinstall dependencies using `npm i`

4. Run postgres db and configure it in `.env`

5. Check dependency tree
Run the following command to review the resolved dependency versions:
`npm ls --all | grep "@strapi"`
Observe that some dependencies resolve to the latest version (e.g., 5.7.0) instead of the specified version (5.6.0).

6. Start the Strapi application
`npm run develop`

7. Navigate to the Content Manager tab in the Strapi admin panel.

8. Observe the error
The following error is displayed, and the Content Manager fails to load:
Error: `useContentManagerInitData` must be used within `StrapiApp`

9. Confirm package mismatch
Inspect the node_modules directory and notice the inconsistent dependency versions. Some dependencies (e.g., `@strapi/admin`) reference `5.7.0` while the rest use `5.6.0`.

### Expected Behavior

When installing Strapi v5.6.0 and its related packages, all dependencies and sub-dependencies should resolve to the same version (v5.6.0). Specifically:

- All `@strapi/*` packages, including `@strapi/admin` and its sub-dependencies, should align with the version specified in the root package.json (v5.6.0).
- The Content Manager tab should load without errors, and the application should function correctly without displaying error: `useContentManagerInitData` must be used within `StrapiApp`
- Developers should be able to install and run Strapi versions lower than the latest (e.g., v5.6.0) seamlessly without needing to debug or manually resolve version mismatches. They should not be required to use overrides or other manual conflict resolution methods to enforce consistent dependency versions.

### Logs

```shell
npm ls --all | grep "@strapi/*"
├─┬ @strapi/email@5.6.0
│ ├─┬ @strapi/admin@5.7.0
│ │ ├─┬ @strapi/data-transfer@5.7.0
│ │ │ ├─┬ @strapi/logger@5.7.0
│ │ │ ├── @strapi/types@5.7.0 deduped
│ │ │ ├── @strapi/utils@5.7.0 deduped
│ │ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ │ ├── @strapi/icons@2.0.0-rc.14 deduped
│ │ ├─┬ @strapi/permissions@5.7.0
│ │ │ ├── @strapi/utils@5.7.0 deduped
│ │ ├─┬ @strapi/types@5.7.0
│ │ │ ├─┬ @strapi/database@5.7.0
│ │ │ │ ├── @strapi/utils@5.7.0 deduped
│ │ │ ├── @strapi/logger@5.7.0 deduped
│ │ │ ├── @strapi/permissions@5.7.0 deduped
│ │ │ ├── @strapi/utils@5.7.0 deduped
│ │ ├─┬ @strapi/typescript-utils@5.7.0
│ │ ├─┬ @strapi/utils@5.7.0
│ ├─┬ @strapi/design-system@2.0.0-rc.14
│ │ ├── @strapi/icons@2.0.0-rc.14 deduped
│ │ ├─┬ @strapi/ui-primitives@2.0.0-rc.14
│ ├─┬ @strapi/icons@2.0.0-rc.14
│ ├─┬ @strapi/provider-email-sendmail@5.6.0
│ │ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/utils@5.6.0
├─┬ @strapi/plugin-graphql@5.6.0
│ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ ├── @strapi/icons@2.0.0-rc.14 deduped
│ ├── @strapi/strapi@5.6.0 deduped
│ ├─┬ @strapi/utils@5.6.0
├─┬ @strapi/plugin-users-permissions@5.6.0
│ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ ├── @strapi/icons@2.0.0-rc.14 deduped
│ ├── @strapi/strapi@5.6.0 deduped
│ ├─┬ @strapi/utils@5.6.0
├─┬ @strapi/provider-upload-aws-s3@5.6.0
├─┬ @strapi/provider-upload-local@5.6.0
│ ├─┬ @strapi/utils@5.6.0
├─┬ @strapi/strapi@5.6.0
│ ├─┬ @strapi/admin@5.6.0
│ │ ├── @strapi/data-transfer@5.6.0 deduped
│ │ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ │ ├── @strapi/icons@2.0.0-rc.14 deduped
│ │ ├── @strapi/permissions@5.6.0 deduped
│ │ ├── @strapi/types@5.6.0 deduped
│ │ ├── @strapi/typescript-utils@5.6.0 deduped
│ │ ├── @strapi/utils@5.6.0 deduped
│ ├─┬ @strapi/cloud-cli@5.6.0
│ │ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/content-manager@5.6.0
│ │ ├── @strapi/admin@5.7.0 deduped
│ │ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ │ ├── @strapi/icons@2.0.0-rc.14 deduped
│ │ ├─┬ @strapi/types@5.6.0
│ │ │ ├── @strapi/database@5.6.0 deduped
│ │ │ ├─┬ @strapi/logger@5.6.0
│ │ │ ├─┬ @strapi/permissions@5.6.0
│ │ │ │ ├── @strapi/utils@5.6.0 deduped
│ │ │ ├── @strapi/utils@5.6.0 deduped
│ │ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/content-releases@5.6.0
│ │ ├── @strapi/admin@5.7.0 deduped
│ │ ├── @strapi/content-manager@5.6.0 deduped
│ │ ├── @strapi/database@5.6.0 deduped
│ │ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ │ ├── @strapi/icons@2.0.0-rc.14 deduped
│ │ ├─┬ @strapi/types@5.6.0
│ │ │ ├── @strapi/database@5.6.0 deduped
│ │ │ ├─┬ @strapi/logger@5.6.0
│ │ │ ├─┬ @strapi/permissions@5.6.0
│ │ │ │ ├── @strapi/utils@5.6.0 deduped
│ │ │ ├── @strapi/utils@5.6.0 deduped
│ │ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/content-type-builder@5.6.0
│ │ ├── @strapi/admin@5.7.0 deduped
│ │ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ │ ├── @strapi/generators@5.6.0 deduped
│ │ ├── @strapi/icons@2.0.0-rc.14 deduped
│ │ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/core@5.6.0
│ │ ├─┬ @strapi/admin@5.6.0
│ │ │ ├── @strapi/data-transfer@5.7.0 deduped
│ │ │ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ │ │ ├── @strapi/icons@2.0.0-rc.14 deduped
│ │ │ ├── @strapi/permissions@5.6.0 deduped
│ │ │ ├── @strapi/types@5.6.0 deduped
│ │ │ ├── @strapi/typescript-utils@5.6.0 deduped
│ │ │ ├── @strapi/utils@5.6.0 deduped
│ │ ├── @strapi/database@5.6.0 deduped
│ │ ├── @strapi/generators@5.6.0 deduped
│ │ ├─┬ @strapi/logger@5.6.0
│ │ ├── @strapi/pack-up@5.0.2 deduped
│ │ ├─┬ @strapi/permissions@5.6.0
│ │ │ ├── @strapi/utils@5.6.0 deduped
│ │ ├─┬ @strapi/types@5.6.0
│ │ │ ├── @strapi/database@5.6.0 deduped
│ │ │ ├── @strapi/logger@5.6.0 deduped
│ │ │ ├── @strapi/permissions@5.6.0 deduped
│ │ │ ├── @strapi/utils@5.6.0 deduped
│ │ ├─┬ @strapi/typescript-utils@5.6.0
│ │ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/data-transfer@5.6.0
│ │ ├── @strapi/logger@5.6.0 deduped
│ │ ├── @strapi/types@5.6.0 deduped
│ │ ├── @strapi/utils@5.6.0 deduped
│ ├─┬ @strapi/database@5.6.0
│ │ ├─┬ @strapi/utils@5.6.0
│ ├── @strapi/email@5.6.0 deduped
│ ├─┬ @strapi/generators@5.6.0
│ │ ├─┬ @strapi/typescript-utils@5.6.0
│ │ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/i18n@5.6.0
│ │ ├── @strapi/admin@5.7.0 deduped
│ │ ├── @strapi/content-manager@5.6.0 deduped
│ │ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ │ ├── @strapi/icons@2.0.0-rc.14 deduped
│ │ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/logger@5.6.0
│ ├─┬ @strapi/pack-up@5.0.2
│ ├─┬ @strapi/permissions@5.6.0
│ │ ├── @strapi/utils@5.6.0 deduped
│ ├─┬ @strapi/review-workflows@5.6.0
│ │ ├── @strapi/admin@5.7.0 deduped
│ │ ├── @strapi/content-manager@5.6.0 deduped
│ │ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ │ ├── @strapi/icons@2.0.0-rc.14 deduped
│ │ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/types@5.6.0
│ │ ├── @strapi/database@5.6.0 deduped
│ │ ├── @strapi/logger@5.6.0 deduped
│ │ ├── @strapi/permissions@5.6.0 deduped
│ │ ├── @strapi/utils@5.6.0 deduped
│ ├─┬ @strapi/typescript-utils@5.6.0
│ ├─┬ @strapi/upload@5.6.0
│ │ ├── @strapi/admin@5.7.0 deduped
│ │ ├── @strapi/design-system@2.0.0-rc.14 deduped
│ │ ├── @strapi/icons@2.0.0-rc.14 deduped
│ │ ├── @strapi/provider-upload-local@5.6.0 deduped
│ │ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/utils@5.6.0
│ ├─┬ @strapi/sdk-plugin@5.3.0
│ │ ├── @strapi/pack-up@5.0.2 deduped
│ ├── @strapi/strapi@5.6.0 deduped
```

### Code Snippets

_No response_

### Media

![Image](https://github.com/user-attachments/assets/ccfc26e3-a546-424d-8871-32abcf0b7d71)

### Additional information

### Related issues that have been closed but the problem still exists
#21151 
#21982 
#22199 
#21779 
#21973 


### Findings
Analysis of the package list revealed that the following packages in version `5.6.0` pull in dependencies from `5.7.0`:

- `@strapi/email@5.6.0`
Installs: `@strapi/admin@5.7.0`
Dependencies: `@strapi/data-transfer@5.7.0`, `@strapi/permissions@5.7.0`, `@strapi/utils@5.7.0`, etc.
- `@strapi/content-manager@5.6.0`
Installs: `@strapi/admin@5.7.0`
- `@strapi/content-releases@5.6.0`
Installs: `@strapi/admin@5.7.0`
- `@strapi/content-type-builder@5.6.0`
Installs: `@strapi/admin@5.7.0`
- `@strapi/i18n@5.6.0`
Installs: `@strapi/admin@5.7.0`
- `@strapi/review-workflows@5.6.0`
Installs: `@strapi/admin@5.7.0`
- `@strapi/upload@5.6.0`
Installs: `@strapi/admin@5.7.0`



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