1.4.0 introduced breaking changes (Can't resolve 'ng2-file-upload/ng2-file-upload') #1129
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?
Hello everyone,
my colleague just cloned our repository and encountered the following error message:
Module not found: Error: Can't resolve 'ng2-file-upload/ng2-file-upload' in '...\src\app\modules\shared\components'
After a bit of research, we found out that his installation had version 1.4.0 installed (not working), but I had 1.3.0 installed (working). So it looks like 1.4.0 might have introduced breaking changes and should've been versioned to 2.0.0 according to npm / semver?
We now have fixed our version to 1.3.0, but maybe you could change the publishing version.
Cheers
Marcel
With 1.4.0 importing this way worked.
import { FileUploader } from 'ng2-file-upload';
Same problem, temp fix is to revert to ^1.3.0.
Same issue here. Not even downgrading to 1.3.0 solved the problem.
1.3.0 and angular 8.0.3 is working but not with 9.0.2
how to revert to 1.3.0
Did anybody got around this issue with version 1.4.0 for Angular 10? Comments on Issue 1141 seem to suggest that 1.4.0 generally works with Angular 10 (unlike Angular 9), but I am curious if anybody who ran into this specific issue got things to work?
@skrupenin1 1.4.0 with angular11 not worked either, "'FileUploadModule' does not appear to be an NgModule class."
what's the version of angular? angular 9 and above??