Update to angular 8 #1092
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ng2-file-upload@1.3.0 requires a peer of @angular/common@^2.3.1 || >=4.0.0 but none is installed. You must install peer dependencies yourselfI guess you have this error when you do :
ng update @angular/cli @angular/coreI fixed it by forcing the update, and everything works fine :
ng update @angular/cli @angular/core --forceBy the way, ng2-file-upload doesn't work anymore if you enable ivy, so I've forked the project and rebuilt it in an angular 8 library, now it works. Sorry, it's not documented but it was initially for my own usage (to test ivy in my apps).
I changed the prefix from ng2XXX to adXXX.
https://www.npmjs.com/package/ad-file-upload
As pointed out by @adessilly, it has issues with Ivy too:
The problem is similar to angular-froala-wysiwyg. Both ng2-file-uploader and angular-froala-wysiwyg use
ngmfor building the project. For compatibility with Ivy, Angular CLI should better be used. In angular-froala-wysiwyg, someone already volunteered to perform the migration to Angular CLI: https://github.com/froala/angular-froala-wysiwyg/pull/329. The same steps can be applied to ng2-file-upload.@jpike88 thanks for clarifying the reported issue