Angular 11 and Angular 12 upgrade

1 Answer 4312 Views
Upload
Yannick
Top achievements
Rank 1
Yannick asked on 18 Aug 2021, 10:36 AM

Hi,

According to your documentation "The latest versions of the packages are compatible with the Active and LTS versions of Angular. "

But when upgrading from Angular 10 to 11 and Angular 11 to 12, I get the following errors:

$ ng update @angular/core@12 @angular/cli@12
Installing a temporary version to perform the update.
Installing packages for tooling via yarn.
Installed packages for tooling via yarn.
Using package manager: 'yarn'
Collecting installed dependencies...
Found 76 dependencies.
Fetching dependency metadata from registry...
                  Package "@progress/kendo-angular-layout" has an incompatible peer dependency to "@angular/animations" (requires "6 - 9" (extended), would install "12.2.1").
                  Package "@progress/kendo-angular-layout" has an incompatible peer dependency to "@angular/common" (requires "6 - 9" (extended), would install "12.2.1").
                  Package "@progress/kendo-angular-layout" has an incompatible peer dependency to "@angular/core" (requires "6 - 9" (extended), would install "12.2.1").
                  Package "@progress/kendo-angular-upload" has an incompatible peer dependency to "@angular/forms" (requires "6 - 9" (extended), would install "12.2.1").
× Migration failed: Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.
  See "C:\Users\YANNIC~1.GEE\AppData\Local\Temp\ng-zkqy3o\angular-errors.log" for further details.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

1 Answer, 1 is accepted

Sort by
1
Accepted
Svet
Telerik team
answered on 23 Aug 2021, 06:32 AM

Hi Yannick,

Indeed, all latest Kendo UI for Angular versions are compatible with Angular 11 and 12. The demonstrated error suggests that you are using an outdated version of the @progress/kendo-angular-layout package. In order to make sure that you are using the latest official versions of all Kendo UI for Angular packages you can use the commands demonstrated in the following article:

https://www.telerik.com/kendo-angular-ui/components/installation/up-to-date/#toc-updating-to-latest-versions

Once the the Kendo package versions are updated in the package.json file please make sure that they are reinstalled.

I hope this helps. Please let me know in case any further information is required for this case.

Regards,
Svet
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Upload
Asked by
Yannick
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or