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

Add support for angular v 19 #72

Open
mr-Deviant opened this issue Dec 19, 2024 · 0 comments
Open

Add support for angular v 19 #72

mr-Deviant opened this issue Dec 19, 2024 · 0 comments

Comments

@mr-Deviant
Copy link

mr-Deviant commented Dec 19, 2024

Unable to use latest ng2-konva in angular version 19

npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: ng2-konva@9.0.0
npm ERR! Found: @angular/common@19.0.4
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"^19.0.4" from the root project
npm ERR!   peer @angular/common@"^19.0.0 || ^20.0.0" from @angular/cdk@19.0.3
npm ERR!   node_modules/@angular/cdk
npm ERR!     @angular/cdk@"^19.0.3" from the root project
npm ERR!     peer @angular/cdk@"19.0.3" from @angular/material@19.0.3
npm ERR!     node_modules/@angular/material
npm ERR!       @angular/material@"^19.0.3" from the root project
npm ERR!       2 more (@angular/material-moment-adapter, ngx-mat-select-search)
npm ERR!   10 more (@angular/forms, @angular/material, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^18.1.0" from ng2-konva@9.0.0
npm ERR! node_modules/ng2-konva
npm ERR!   ng2-konva@"^9.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/common@18.2.13
npm ERR! node_modules/@angular/common
npm ERR!   peer @angular/common@"^18.1.0" from ng2-konva@9.0.0
npm ERR!   node_modules/ng2-konva
npm ERR!     ng2-konva@"^9.0.0" 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.

BTW: it can be fixed in package.json

"overrides": {
    "ng2-konva": {
      "@angular/core": "^19.0.0",
      "@angular/common": "^19.0.0"
    }
  }

or if you can, use for now npm install --legacy-peer-deps

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