Currently in the process of upgrading application to Angular 16.2 with Node 18.10 in a windows environment, having issues with ng-select2-component appearing to force using angular 17 dependencies. This is the case when installing ng-select2-component v12 and v13.
$ npm install
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ngx-infinite-scroll@17.0.0
npm WARN Found: @angular/common@16.2.12
npm WARN node_modules/@angular/common
npm WARN @angular/common@"^16.2.12" from the root project
npm WARN 13 more (ngx-bootstrap, @angular/router, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/common@">=17.0.0 <18.0.0" from ngx-infinite-scroll@17.0.0
npm WARN node_modules/ng-select2-component/node_modules/ngx-infinite-scroll
npm WARN ngx-infinite-scroll@">=16.0.0" from ng-select2-component@13.0.0
npm WARN node_modules/ng-select2-component
npm WARN
npm WARN Conflicting peer dependency: @angular/common@17.3.8
npm WARN node_modules/@angular/common
npm WARN peer @angular/common@">=17.0.0 <18.0.0" from ngx-infinite-scroll@17.0.0
npm WARN node_modules/ng-select2-component/node_modules/ngx-infinite-scroll
npm WARN ngx-infinite-scroll@">=16.0.0" from ng-select2-component@13.0.0
npm WARN node_modules/ng-select2-component
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ngx-infinite-scroll@17.0.0
npm WARN Found: @angular/core@16.2.12
npm WARN node_modules/@angular/core
npm WARN @angular/core@"^16.2.12" from the root project
npm WARN 16 more (ngx-bootstrap, @angular/router, @angular/compiler, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/core@">=17.0.0 <18.0.0" from ngx-infinite-scroll@17.0.0
npm WARN node_modules/ng-select2-component/node_modules/ngx-infinite-scroll
npm WARN ngx-infinite-scroll@">=16.0.0" from ng-select2-component@13.0.0
npm WARN node_modules/ng-select2-component
npm WARN
npm WARN Conflicting peer dependency: @angular/core@17.3.8
npm WARN node_modules/@angular/core
npm WARN peer @angular/core@">=17.0.0 <18.0.0" from ngx-infinite-scroll@17.0.0
npm WARN node_modules/ng-select2-component/node_modules/ngx-infinite-scroll
npm WARN ngx-infinite-scroll@">=16.0.0" from ng-select2-component@13.0.0
npm WARN node_modules/ng-select2-component
Currently in the process of upgrading application to Angular 16.2 with Node 18.10 in a windows environment, having issues with ng-select2-component appearing to force using angular 17 dependencies. This is the case when installing ng-select2-component v12 and v13.