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

angularangular-clinpmtypescript

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?

Best Answer

To fix this install the specific typescript version 3.1.6

npm i typescript@3.1.6 --save-dev --save-exact