Open isma1809 opened 3 months ago
I tried to install ng2-charts in angular 17 as the instructions say but it gives me this 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: @angular/common@17.3.11 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"^17.3.0" from the root project npm ERR! peer @angular/common@">=17.0.0" from ng2-charts@6.0.1 npm ERR! node_modules/ng2-charts npm ERR! ng2-charts@"6.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^18.0.0 || ^19.0.0" from @angular/cdk@18.0.3 npm ERR! node_modules/@angular/cdk npm ERR! peer @angular/cdk@">=17.0.0" from ng2-charts@6.0.1 npm ERR! node_modules/ng2-charts npm ERR! ng2-charts@"6.0.1" 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.
In the ng2-charts documentation it indicates that version 17 of Angular is compatible with version 6 and even 5 and both give me the same error
thanks for your time
adding "@angular/cdk": "^17.0.0", to my package.json dependencies seems to have fixed this
"@angular/cdk": "^17.0.0",
Thanks you!!
I tried to install ng2-charts in angular 17 as the instructions say but it gives me this 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: @angular/common@17.3.11 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"^17.3.0" from the root project npm ERR! peer @angular/common@">=17.0.0" from ng2-charts@6.0.1 npm ERR! node_modules/ng2-charts npm ERR! ng2-charts@"6.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^18.0.0 || ^19.0.0" from @angular/cdk@18.0.3 npm ERR! node_modules/@angular/cdk npm ERR! peer @angular/cdk@">=17.0.0" from ng2-charts@6.0.1 npm ERR! node_modules/ng2-charts npm ERR! ng2-charts@"6.0.1" 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.
In the ng2-charts documentation it indicates that version 17 of Angular is compatible with version 6 and even 5 and both give me the same error
thanks for your time