angulartypescriptangular-cliangular-migration

Upgrade angular 5.2 to 11


I am trying to upgrade an angular app from 5.2 app to 11. It uses webpack to build and was not created using cli and has no angular.json file. I tried the 'upgrade angular' website to get instructions and also referred to the 'medium.com' instrutions and other stackoverflow questions and was not able to find an answer, could someone please help me with the steps to upgrade the app.


Solution

  • I suggest you:

    1. Create an empty Angular 11 application (generate one and remove all elements)
    2. Add the libraries you use in your old application with the newer versions
    3. Copy the files.
    4. Check all "rxjs" you use -Angular 11 use Rxjs6-. See RxJS v5.x to v6 Update Guide
    5. Check all the http calls to use the new httpClient