ERROR in The Angular Compiler requires TypeScript >=3.1.1 and <3.2.0 but 3.2.1 was found instead

Matt picture Matt · Dec 2, 2018 · Viewed 138.3k times · Source

I am getting this error

ERROR in The Angular Compiler requires TypeScript >=3.1.1 and <3.2.0 but 3.2.1 was found instead.

Seems like Typescript updated but the Angular Compiler doesn't like that.

How do I fix this?

Answer

Matt picture Matt · Dec 2, 2018

To fix this install the specific typescript version 3.1.6

npm i [email protected] --save-dev --save-exact