Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package ng2-smart-table is not compatible with Angular v14 #22

Open
jake-brandt opened this issue Dec 30, 2024 · 1 comment
Open

Package ng2-smart-table is not compatible with Angular v14 #22

jake-brandt opened this issue Dec 30, 2024 · 1 comment

Comments

@jake-brandt
Copy link

When installing as of this weekend, the following NPM error occurs during package resolution:

npm error Could not resolve dependency:
npm error peer @angular/common@"^10.0.0" from ng2-smart-table@1.7.2
npm error node_modules/ng2-smart-table
npm error   ng2-smart-table@"^1.6.0" from the root project

There are other more easily resolvable dependencies (tslint being one of them); but ng2-smart-table doesn't appear to support anything beyond Angular v10. Not quite sure how this previously worked with Angular v14 but I'm curious!

@jake-brandt
Copy link
Author

For additional context; a colleague of mine reached out to see if we could solve this issue on his machine. I actually cloned a fresh copy of the repo myself and received the same errors as him. My thoughts are that at least a few of the subdependencies have been updated since last release of the project, and the version restrictions in package.json aren't strict enough. But even with that, using the original package-lock.json from source control yields the following (in other words, if I clone a fresh copy, here's what we originally got before narrowing down to the ng2-smart-table issue we couldn't get overlapping versions for between A14 and NG2ST v1.7):

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @angular/cdk@12.1.0
npm error Found: @angular/common@14.3.0
npm error node_modules/@angular/common
npm error   @angular/common@"^14.2.12" from the root project
npm error   peer @angular/common@"14.3.0" from @angular/forms@14.3.0
npm error   node_modules/@angular/forms
npm error     @angular/forms@"^14.2.12" from the root project
npm error     peer @angular/forms@"^14.0.0" from @nebular/auth@10.0.0
npm error     node_modules/@nebular/auth
npm error       @nebular/auth@"10.0.0" from the root project
npm error     2 more (@swimlane/ngx-charts, ng2-completer)
npm error   11 more (@angular/platform-browser, ...)
npm error
npm error Could not resolve dependency:
npm error peer @angular/common@"^12.0.0 || ^13.0.0-0" from @angular/cdk@12.1.0
npm error node_modules/@angular/cdk
npm error   @angular/cdk@"12.1.0" from the root project
npm error   peer @angular/cdk@">=12.0.0" from @swimlane/ngx-charts@20.1.2
npm error   node_modules/@swimlane/ngx-charts
npm error     @swimlane/ngx-charts@"^20.1.2" from the root project
npm error
npm error Conflicting peer dependency: @angular/common@13.4.0
npm error node_modules/@angular/common
npm error   peer @angular/common@"^12.0.0 || ^13.0.0-0" from @angular/cdk@12.1.0
npm error   node_modules/@angular/cdk
npm error     @angular/cdk@"12.1.0" from the root project
npm error     peer @angular/cdk@">=12.0.0" from @swimlane/ngx-charts@20.1.2
npm error     node_modules/@swimlane/ngx-charts
npm error       @swimlane/ngx-charts@"^20.1.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant