The Angular Compiler requires TypeScript Angular Origin: On your device Last updated 15 Oct 2026

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

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

Exact message you may see The Angular Compiler requires TypeScriptThe Angular Compiler requires TypeScript >=5.4.0 and <5.6.0 but 5.7.2 was found insteadTypeScript version is not supported by Angularrequires TypeScript >= and < but was found instead
Seen on: Angular Angular CLI TypeScript

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?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

Could not find the builder's node package — Angular CLI: Could not find the '@angular-devkit/build-angular:browser' builder's node package / Cannot find module '@angular-devkit/build-angular/package.json' (Angular)Could not find the bu…ERESOLVE peer dependency conflict after ng update — Angular: npm ERR! ERESOLVE could not resolve — Conflicting peer dependency: @angular/core@"^16.0.0" (after ng update / ng add) (Angular)ERESOLVE peer depende…exceeded maximum budget — Angular build: Error: bundle initial exceeded maximum budget. Budget 1.00 MB was not met by 120.00 kB with a total of 1.12 MB (Angular)exceeded maximum budg…ng: command not found — Angular CLI: zsh: command not found: ng / 'ng' is not recognized as an internal or external command (Angular)ng: command not foundNode.js version detected. The Angular CLI requires a minimum — Angular CLI: Node.js version v16.20.2 detected. The Angular CLI requires a minimum Node.js version of v18.19.1 (Angular)Node.js version detec…Schema validation failed with the following errors — Angular CLI: Schema validation failed with the following errors: Data path "" must NOT have additional properties(xyz) (Angular)Schema validation fai…TS2322 — TS2322: Type 'X' is not assignable to type 'Y' (TypeScript)TS2322The Angul…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.