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.
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 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
- Install the supported version:
npm i -D typescript@~5.5(use the range from the message) - Check duplicates:
npm ls typescript - Upgrade Angular if you need a newer TypeScript
Detailed fix by platform
npm
npm i -D typescript@">=5.4.0 <5.6.0"thennpm ls typescript- VS Code: "TypeScript: Select Version" → "Use Workspace Version"
How to diagnose
- Range — What range does the error list?
- Installed — npm ls typescript?
- 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:
Similar errors
- 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'
- 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)
- 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
Most viewed in Angular
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 15 Oct 2026