swimlane / ngx-datatable

✨ A feature-rich yet lightweight data-table crafted for Angular
http://swimlane.github.io/ngx-datatable/
MIT License
4.63k stars 1.68k forks source link

Error installing in Angular 13.2 and 13.3 #2087

Open anuj9196 opened 2 years ago

anuj9196 commented 2 years ago

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[x] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior Library not installing on Angular 13.2 and 13.3 versions using

npm install @swimlane/ngx-datatable --save

and produces the following error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: my-app@0.0.0
npm ERR! Found: rxjs@7.5.5
npm ERR! node_modules/rxjs
npm ERR!   rxjs@"~7.5.0" from the root project
npm ERR!   peer rxjs@"^6.5.3 || ^7.4.0" from @angular/common@13.2.7
npm ERR!   node_modules/@angular/common
npm ERR!     @angular/common@"~13.2.0" from the root project
npm ERR!     peer @angular/common@">=11.0.2" from @swimlane/ngx-datatable@20.0.0
npm ERR!     node_modules/@swimlane/ngx-datatable
npm ERR!       @swimlane/ngx-datatable@"*" from the root project
npm ERR!     1 more (@angular/platform-browser)
npm ERR!   1 more (@angular/core)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs@"^6.6.3" from @swimlane/ngx-datatable@20.0.0
npm ERR! node_modules/@swimlane/ngx-datatable
npm ERR!   @swimlane/ngx-datatable@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/user/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/user/.npm/_logs/2022-05-02T08_48_46_067Z-debug-0.log

Expected behavior Library should be installed without error

Reproduction of the problem

What is the motivation / use case for changing the behavior? Heavily using ngx-datatable in our project (Angular 8). Now upgrade to the latest update of Angular (Angular 13) but couldn't proceed due to the above error.

Please tell us about your environment: Node version: 16.14.0 OS: Mac

SwissKerim commented 2 years ago

for the moment try it with npm i --force

the dev dependencies are not updated from the dev. We are already waiting for months..

anuj9196 commented 2 years ago

@SwissKerim Degrading rxjs from 7 to 6 works for me.

SwissKerim commented 2 years ago

@SwissKerim Degrading rxjs from 7 to 6 works for me.

oh well.. i got other dependencies for rxjs 7

rina-maslova commented 2 years ago

Any update here? Having similar problem.

Mooeeezzzz commented 2 years ago
TheFrohlich commented 2 years ago

Same in angular 14... Any updates change update is planed?

christophercr commented 2 years ago

I've submitted this PR #2108, hopefully that will unblock us to move forward with Angular 13 + Ivy.

ctusch commented 1 year ago

Siemens maintains a fork with updated dependencies: siemens/ngx-datatable