ogix / ng2-fancy-image-uploader

Angular2 async image uploader with preview:
https://ogix.github.io/fancy-image-uploader-demo
MIT License
18 stars 11 forks source link

Support Angular 6 #19

Open clemstoquart opened 6 years ago

clemstoquart commented 6 years ago

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.

ogix commented 6 years ago

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

rmasgutov commented 6 years ago

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

kodeine commented 6 years ago

@ogix any updates on ng6 support?

ogix commented 6 years ago

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 commented 6 years ago

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!