Angular CLI and auto update
I am working with Angular CLI and when I run "ng serve" the project should update automatically. However, sometimes this is not ideal. Sometimes changes are not automatically updated and sometimes they do. When the changes are not updated I have to rerun "ng serve" which is time consuming.
Is there any way you can find out when changes are automatically updated and when not? Also, if I see that I need to re-run "ng serve", is there a faster way to update the project?
source to share
Which CLI version are you using? One of the beta releases had an error when it did not include devDependency when setting up your project (@ngtools/webpack)
. This caused an issue where the Typescript compiler was not picking up the changes in your code and the update was not called as a result.
I'm sure the problem has been resolved, but depending on when you created your project, you may have an invalid one package.json
. My advice is to update the CLI according to their instructions, generate a new dummy project and compare the existing project configuration with your own and update as needed.
source to share