Harvest-Dev / ng-select2

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

Update to Angular 16 #50

Closed hatsantos closed 1 year ago

hatsantos commented 1 year ago

When trying to update to angular 16 I get a peer dependency error, related to ngx-infinite-scroll.

I checked ngx-infinite-scroll and the 16.0 version was already released, but ng-select2 is forcing the 15.0.0 version.

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ngx-infinite-scroll@15.0.0
npm WARN Found: @angular/common@16.0.4
npm WARN node_modules/@angular/common
npm WARN   @angular/common@"16.0.4" from the root project
npm WARN   13 more (@angular/forms, @angular/platform-browser, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer @angular/common@">=15.0.0 <16.0.0" from ngx-infinite-scroll@15.0.0
npm WARN node_modules/ng-select2-component/node_modules/ngx-infinite-scroll
npm WARN   ngx-infinite-scroll@"^15.0.0" from ng-select2-component@11.1.0
npm WARN   node_modules/ng-select2-component
npm WARN 
npm WARN Conflicting peer dependency: @angular/common@15.2.9
npm WARN node_modules/@angular/common
npm WARN node_modules/ng-select2-component/node_modules/ngx-infinite-scroll
npm WARN   ngx-infinite-scroll@"^15.0.0" from ng-select2-component@11.1.0
npm WARN   node_modules/ng-select2-component
npm WARN
npm WARN Conflicting peer dependency: @angular/core@15.2.9
npm WARN node_modules/@angular/core
npm WARN   peer @angular/core@">=15.0.0 <16.0.0" from ngx-infinite-scroll@15.0.0
npm WARN   node_modules/ng-select2-component/node_modules/ngx-infinite-scroll
npm WARN     ngx-infinite-scroll@"^15.0.0" from ng-select2-component@11.1.0
npm WARN     node_modules/ng-select2-component
Zefling commented 1 year ago

Done 😄

hatsantos commented 1 year ago

Owhouuu! that was fast!

Thank you so much!