Open
Description
Unable to use latest ng2-konva in angular version 19
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
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/[email protected]
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/[email protected]
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 [email protected]
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/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! peer @angular/common@"^18.1.0" from [email protected]
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
Metadata
Metadata
Assignees
Labels
No labels