pIvan / file-upload

drag and drop file component
MIT License
87 stars 12 forks source link

Rxjs 7.8.1 with ngx-file-upload@^15.0.0 #81

Closed bhimani07 closed 1 year ago

bhimani07 commented 1 year ago

Versions: angular: 15.2.0 rxjs: 7.8.1 ngx-file-upload: 15.0.3

I'm trying to update ngx-file-upload from 14.0.0 to 15.0.0 using rxjs v7.8.1. I'm getting this error when adding the ngx-file-upload:

npm ERR! Found: @iplab/ngx-file-upload@14.0.0
npm ERR! node_modules/@iplab/ngx-file-upload
npm ERR!   @iplab/ngx-file-upload@"^15.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! @iplab/ngx-file-upload@"^15.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: rxjs@7.8.1
npm ERR! node_modules/rxjs
npm ERR!   peer rxjs@"^7.0.0" from @iplab/ngx-file-upload@15.0.3
npm ERR!   node_modules/@iplab/ngx-file-upload
npm ERR!     @iplab/ngx-file-upload@"^15.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.
npm ERR! 
npm ERR! See /Users/kbhimani/.npm/eresolve-report.txt for a full report.
pIvan commented 1 year ago

Hi @bhimani07, I just tried to install dependencies on a project where rxjs is v7.8.1 and ngx-file-upload is at version 15.0.3, and everything works fine. Have you tried deleting the 'node_modules' and 'package-lock.json' files, fixing the version numbers, and then running 'npm install' again?