Home > other >  Upgrade to Angular 10 throws errors related to @ng-select/ng-select (Incompatible peer dependencies)
Upgrade to Angular 10 throws errors related to @ng-select/ng-select (Incompatible peer dependencies)

Time:11-24

I have problems when updating Angular app from version 9 to version 10.

enter image description here

You can see in the picture that there is an incompatible dependency. I know there are many questions asked around this but I was unable to solve the problem.

enter image description here

Also there is my package.json. I really appreciate your answer. Thanks in advance.

CodePudding user response:

You need to update your ng-selct version also. The version you are currently using is not compatible with Angular 10. Check their github readme below

enter image description here

CodePudding user response:

You need to upgrade the @ng-select/ng-select package version to v5(exactly 5.1.0 - last compatible):

https://github.com/ng-select/ng-select/blob/v5.1.0/package.json

This is the correct version for Angular 10.

Change version number in the package.json file and run npm update to fix this problem.

  • Related