ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.1.6 was found instead. code example
Example: ERROR in The Angular Compiler requires TypeScript >=4.0.0 and <4.1.0 but 3.4.5 was found instead.
npm i -D typescript@4.0.5
npm i -D typescript@4.0.5