Problems upgrading to version 15
HarelM opened this issue · 0 comments
I follow the upgrade instructions but there were some bugs in the upgrade.
The following is my project if you want to try and running the upgrade to see how it fails - this is reproducible:
https://github.com/IsraelHikingMap/Site/tree/e854120951fe8f32057f2d6f2f3611d4c6f5dee6/IsraelHiking.Web
- When upgrading the scss that is create/upgraded is malformed (around the
//TODO
). - When trying to run the karma tests, no tests are ran. (I found this solution: https://stackoverflow.com/questions/75429368/angular-update-from-14-to-version-15-and-now-ng-test-gets-no-specs-found)
- Using the tool
ng generate @angular/material:mdc-migration
created an extra}
and the end of one of the scss files. - Sliders with
[(ngModel)]=
were not updated correctly - the ngModel should be placed in the input that was added
I'll update this issue if I find more issue with the upgrade.
Worth mentioning that this is a project with a history the goes up to Angular 2, while I did try and follow all the upgrade guides there might be configurations in this project that are not relevant, incorrect or not as expected, but I don't plan to create a new angular project from the project template every time I upgrade a version, although I think I did that around Angular 6...