# Angular: Error: The Angular Compiler requires TypeScript >=5.4.0 and <5.6.0 but 5.7.2 was found instead

**Code:** `The Angular Compiler requires TypeScript` · **Category:** Angular · **Seen on:** Angular, Angular CLI, TypeScript

The installed TypeScript version is outside the range your Angular version supports.

## Meaning

Each Angular release supports a narrow TypeScript range. If another tool or a manual install brought a different TypeScript, the compiler refuses to run. Install the version Angular asks for (the message gives the range), and keep a single TypeScript version in the tree.

## Common causes

- TypeScript upgraded manually beyond what Angular supports
- Older TypeScript left after upgrading Angular
- Another package (tooling) pulling its own TypeScript at the top level
- Lockfile resolving a different version
- Global TypeScript used by the editor, not the project's

## Quick fix

1. Install the supported version: `npm i -D typescript@~5.5` (use the range from the message)
2. Check duplicates: `npm ls typescript`
3. Upgrade Angular if you need a newer TypeScript

## Detailed fix by platform

### npm

1. `npm i -D typescript@">=5.4.0 <5.6.0"` then `npm ls typescript`
2. VS Code: "TypeScript: Select Version" → "Use Workspace Version"

## How to diagnose

1. **Range** — What range does the error list?
2. **Installed** — npm ls typescript?
3. **Editor** — Using the workspace TypeScript?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/angular/typescript-version-unsupported-by-compiler)
