Wednesday, November 13, 2019

ERROR in The Angular Compiler requires TypeScript.

Hi All,

When you build your application from the command prompt you will get the error in your window.

ERROR in The Angular Compiler requires TypeScript >=2.7.2 and <2.10.0 but 3.5.3 was found instead.

The solution of it as below:- 

You should do npm install typescript@'>=2.7.2 <2.10.0'. This will install the correct typescript your project needs. Make sure you run this inside your Angular project.
On Windows, you should use double quotes instead of single quotes, like so:
npm install typescript@">=2.7.2 <2.10.0"
Otherwise, you'll get the system cannot find the file specified.

Thank you,
Hope it will help you.

Best Regards,
Arjun Walmiki

Keep visiting my blog.

No comments:

Post a Comment