ng2-fancy-image-uploader icon indicating copy to clipboard operation
ng2-fancy-image-uploader copied to clipboard

Support Angular 6

Open clemstoquart opened this issue 6 years ago • 5 comments

Hello,

ng2-fancy-image-uploader currently doesn't work with Angular 6+. Probably because ng2-fancy-image-uploader brings its own @angular/core version which conflicts with the project one.

ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
node_modules/ng2-fancy-image-uploader/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

Have a nice day.

clemstoquart avatar May 30 '18 14:05 clemstoquart

Hello, I am going to rename this lib starting with the next release which will support Angular 6. Stay tuned!

ogix avatar Jun 02 '18 20:06 ogix

Same problem https://stackoverflow.com/questions/48926322/cannot-redeclare-block-scoped-variable-ngdevmode

rmasgutov avatar Jun 06 '18 09:06 rmasgutov

@ogix any updates on ng6 support?

kodeine avatar Jul 10 '18 16:07 kodeine

Hi, sorry for such delay I've been very busy lately. It is still in progress but almost ready. Glad that you are asking it will motivate me to finish faster :-)

ogix avatar Jul 11 '18 07:07 ogix

I have good news! A new version is ready but in a new package called ngx-image-uploader, you will find the repo here: https://github.com/ogix/ngx-image-uploader. Be aware that there are some breaking changes. Mainly namings were changed like onUpload -> upload, upload -> uploadImage, "Fancy" prefix removed. I will change readme file of this repo a bit later.. Good luck!

ogix avatar Jul 21 '18 22:07 ogix