Angular – How to fix ‘property does not exist on type’ error?

It usually happens when you develop Angular applications. To solve this just shut down the server & start it again:

$ ng serve 

Explanation

This happens because when you start the application, The server is actually serving the bundles(JavaScript/CSS/HTML… output files) stored in the dist folder. Sometimes, when you make changes in your code, the changes don’t reflect in your bundles, which will lead to the server still using the old bundles.

Leave a Comment