Open GregJF opened 3 years ago
I am trying with Angular v10 and npm v7 and the getting below error:
$ npm install ng2-daterangepicker (node:8412) ExperimentalWarning: The fs.promises API is experimental npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: common-components-lib-ux@19.1.0-SNAPSHOT npm ERR! Found: @angular/common@10.2.4 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"10.2.4" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^9.0.1" from ng2-daterangepicker@3.0.1 npm ERR! node_modules/ng2-daterangepicker npm ERR! ng2-daterangepicker@"3.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.
ng2-daterangepicker is expecting Angular v9. Does that mean ng2-daterangepicker is incompatible with Angular 10.
I am not the author of this library But that is what I found and I logged this issue in the hope that the author will upgrade the tool to the latest Angular (and be compatible with all major version in between)
Package "ng2-daterangepicker" has an incompatible peer dependency to "@angular/common" (requires "^9.0.1" (extended), would install "11.2.11"). Package "ng2-daterangepicker" has an incompatible peer dependency to "@angular/core" (requires "^9.0.1" (extended), would install "11.2.11").