Search code examples
angularangular-ngselect

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


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.


Solution

  • 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

    https://github.com/ng-select/ng-select

    You need to upgrade your ng-select version to 5

    enter image description here