ngx-material-file-input icon indicating copy to clipboard operation
ngx-material-file-input copied to clipboard

ngx-material-file-input can't be used with Angular 11

Open Leccho opened this issue 4 years ago • 5 comments

Upgrading from Angular 10 to 11, I get this error: Package "ngx-material-file-input" has an incompatible peer dependency to "@angular/common" (requires "^8.1.3 || ^9.0.0" (extended), would install "11.1.1").

Is there a plan to fix this issue?

Leccho avatar Jan 29 '21 15:01 Leccho

It seems to work fine as of now, I deleted the packages for the upgrade and re-installed the packages after. I'd still like to see support to the latest angular version!

Leccho avatar Jan 29 '21 15:01 Leccho

+1 would really like this

naviln avatar May 05 '21 21:05 naviln

@Leccho What are you doing for workaround? I am using Angular 11 and getting this:

✖ Package installation failed: npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/cdk
npm ERR!   @angular/cdk@"^11.2.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/cdk@"^8.1.1 || ^9.0.0" from [email protected]
npm ERR! node_modules/ngx-material-file-input
npm ERR!   dev ngx-material-file-input@"^2.1.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.
npm ERR! 
npm ERR! See /home/torsho/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/torsho/.npm/_logs/2021-05-12T19_36_40_334Z-debug.log
Package install failed, see above.

desertSniper87 avatar May 12 '21 19:05 desertSniper87

I deleted the ngx-material-file-input packages. You might wanna remove the node_modules folder. Then I use npm install to reinstall node_modules. Once installed I used ng upgrade to get version 11. Then I reinstalled ngx-material-file-input.

Leccho avatar May 12 '21 20:05 Leccho

I deleted the ngx-material-file-input packages. You might wanna remove the node_modules folder. Then I use npm install to reinstall node_modules. Once installed I used ng upgrade to get version 11. Then I reinstalled ngx-material-file-input.

Tried this, and worked! haha. thanks.

naviln avatar May 13 '21 11:05 naviln