ngx-datatable icon indicating copy to clipboard operation
ngx-datatable copied to clipboard

Error installing in Angular 13.2 and 13.3

Open anuj9196 opened this issue 2 years ago • 8 comments

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: [email protected]
npm ERR! Found: [email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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

  • Table version:

20.0.0

  • Angular version:

Angular 13.2.0 and 13.3.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]

anuj9196 avatar May 02 '22 08:05 anuj9196

for the moment try it with npm i --force

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

SwissKerim avatar May 05 '22 14:05 SwissKerim

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

anuj9196 avatar May 05 '22 17:05 anuj9196

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

oh well.. i got other dependencies for rxjs 7

SwissKerim avatar May 05 '22 18:05 SwissKerim

Any update here? Having similar problem.

rina-maslova avatar Jul 20 '22 16:07 rina-maslova

  • https://www.npmjs.com/package/@boring.devs/ngx-datatable (Forked)
  • stackblitz

Mooeeezzzz avatar Aug 05 '22 17:08 Mooeeezzzz

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

TheFrohlich avatar Aug 31 '22 10:08 TheFrohlich

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

christophercr avatar Sep 05 '22 11:09 christophercr

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

ctusch avatar Sep 19 '22 15:09 ctusch