Grsmto / simplebar

Custom scrollbars vanilla javascript library with native scroll, done simple, lightweight, easy to use and cross-browser.
http://grsmto.github.io/simplebar/
MIT License
6.05k stars 535 forks source link

Dependency error #534

Closed csrar closed 1 year ago

csrar commented 4 years ago

Describe the bug I got this error installing using @angular/common@10.2.1

To Reproduce npm install simplebar-angular --save

Additional context Got this error installing simplebar-angular

shell error `(omnicontext-fe) carguello@dingo:~/develop/js/angular/omnicontext-frotend$ npm install simplebar-angular --save

npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: omnicontext-frotend@0.0.0 npm ERR! Found: @angular/common@10.2.1 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"~10.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^8.1.3" from simplebar-angular@2.3.0 npm ERR! node_modules/simplebar-angular npm ERR! simplebar-angular@"*" 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. npm ERR! npm ERR! See /home/carguello/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /home/carguello/.npm/_logs/2020-10-29T22_36_28_740Z-debug.log`

/home/carguello/.npm/_logs/2020-10-29T22_36_28_740Z-debug.log

`# npm resolution error report

2020-10-29T22:36:28.737Z

While resolving: omnicontext-frotend@0.0.0 Found: @angular/common@10.2.1 node_modules/@angular/common @angular/common@"~10.2.0" from the root project

Could not resolve dependency: peer @angular/common@"^8.1.3" from simplebar-angular@2.3.0 node_modules/simplebar-angular simplebar-angular@"*" from the root project

Fix the upstream dependency conflict, or retry this command with --force, or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{ "code": "ERESOLVE", "current": { "name": "@angular/common", "version": "10.2.1", "whileInstalling": { "name": "omnicontext-frotend", "version": "0.0.0", "path": "/home/carguello/develop/js/angular/omnicontext-frotend" }, "location": "node_modules/@angular/common", "dependents": [ { "type": "prod", "name": "@angular/common", "spec": "~10.2.0", "from": { "location": "/home/carguello/develop/js/angular/omnicontext-frotend" } } ] }, "edge": { "type": "peer", "name": "@angular/common", "spec": "^8.1.3", "error": "INVALID", "from": { "name": "simplebar-angular", "version": "2.3.0", "whileInstalling": { "name": "omnicontext-frotend", "version": "0.0.0", "path": "/home/carguello/develop/js/angular/omnicontext-frotend" }, "location": "node_modules/simplebar-angular", "dependents": [ { "type": "prod", "name": "simplebar-angular", "spec": "*", "from": { "location": "/home/carguello/develop/js/angular/omnicontext-frotend" } } ] } }, "peerConflict": null, "strictPeerDeps": false, "force": false } `

Your environment

Software Version(s)
SimpleBar latest
Browser shell
Operating System Xubuntu
Grsmto commented 1 year ago

Please try latest version and re-open if needed!