Support for Angular 12
ilitovka opened this issue · comments
Ihor Litovka commented
Latest version of this package support Angular 12, but I cann't install this package because some of dependencies require 9 version of @angular/cdk etc...
I think there should be another peer dependencies, like this:
"peerDependencies": {
"@angular/cdk": "^12.0.0",
"@angular/common": "^12.0.0",
"@angular/core": "^12.0.0",
"@angular/forms": "^12.0.0"
},
or like this
"peerDependencies": {
"@angular/cdk": ">=9.0.0",
"@angular/common": ">=9.0.0",
"@angular/core": ">=9.0.0",
"@angular/forms": ">=9.0.0"
},
Error while installing this package:
$ npm i ng-lightning
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: @angular/common@12.2.16
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"^12.2.16" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^9.0.0 || ^10.0.0-0" from @angular/cdk@9.2.4
npm ERR! node_modules/@angular/cdk
npm ERR! peer @angular/cdk@"^9.0.0" from ng-lightning@8.0.0
npm ERR! node_modules/ng-lightning
npm ERR! ng-lightning@"*" 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
Thanks.