npm install -g @angular/cli@next
npm install @angular/cli@next
ng update @angular/cli --from=1 --migrate-only
ng update @angular/core@next --force
ng update @angular/cdk@next
Now with rc5: (Mono repository with app & library)
-
First AOT build (app, consuming the library from TS sources)fails in the end: Error: Expected to find an ngsw-config.json configuration file in the ab/cd folder. Either provide one or disable Service Worker in your angular.json configuration file. -> disabled service worker in angular.json and AOT build works. Have to investigate. The file is present but in another folder.
-
Second AOT build (app, consuming the library from TS sources) Works 👌
-
At some random places CSS spacing is off after applying your list of commands. Have to investigate.
-
During ng-packagr build of the library (ng-packagr, v3-rc3) We are calling complete method of the EventEmitter class from angular/core and during the packaging we get error TS2339: Property 'complete' does not exist on type 'EventEmitter'. Guess this is ng-packagr related. -> Tried ts-node upgrade 4 to 5 -> Tried to provide lib.languageLevel (["es2017","dom"]) for ng-packagr.
-
We use
ng set/getat some places to switch the tsconfig configuration. Don't know how to replace them yet. Maybe tsconfig can now be override with the new architect -
angular.jsonwas created with app and app1 and caused the following error: Architect commands with multiple targets cannot specify overrides.'build' would be run on the following projects: app, app1 I just removed the app1 completely. Reasons is maybe a very small config still in the angular-cli.json we had there in place to support ng generate inside our nested library project. Can be ignored I guess.