Harvest-Dev / ng-select2

A select2 for Angular
MIT License
52 stars 32 forks source link

Having issues with upgrading to Angular 16 #66

Open csmith-acpy opened 3 months ago

csmith-acpy commented 3 months ago

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

collea-ma commented 3 months ago

Getting the same error while installing version 13. I am using Angular 16.2.12.