Upgrade angular 5.2 to 11

735 views Asked by At

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.

3

There are 3 answers

0
Eliseo On BEST ANSWER

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
3
Mahdi Zarei On

angular recommends to NOT TO upgrade more than 1 major updates at once. you have to upgrade step by step. 5 to 6, 6 to 7 and so on...

0
Piva Gregory On

You can use update guide and check step by step.

https://update.angular.io/?v=5.2-11.0