I'm trying to update my Angular with ng update --all
as in this question stated [https://stackoverflow.com/questions/56419456/cant-find-compiler-ngcc-module-after-upgrading-angular-and-project], but it always says Repository is not clean. Please commit or stash any changes before updating.
I have run the following commands today:
npm install
npm install -g @angular/cli
npm install --save font-awesome angular-font-awesome
npm install angular-alert-module --save
At this state the program compiled
ng update @angular/cli
since then it does not compile
I read I need to do ng update --all --force
but it doesn't work because the repository 'is not clean'.
I made a commit pushed it and pulled (where there were no changes) before. But it didn't help
ng update --all --force
The error-message is:
Repository is not clean. Please commit or stash any changes before updating.