1.4.0 introduced breaking changes (Can't resolve 'ng2-file-upload/ng2-file-upload') #1129

Open
opened 2019-11-26 09:56:03 +00:00 by marcelcremer · 7 comments
marcelcremer commented 2019-11-26 09:56:03 +00:00 (Migrated from github.com)

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

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
mikeljoe commented 2020-02-23 16:49:43 +00:00 (Migrated from github.com)

With 1.4.0 importing this way worked.

import { FileUploader } from 'ng2-file-upload';

With 1.4.0 importing this way worked. import { FileUploader } from 'ng2-file-upload';
isostarec commented 2020-02-26 13:14:29 +00:00 (Migrated from github.com)

Same problem, temp fix is to revert to ^1.3.0.

Same problem, temp fix is to revert to ^1.3.0.
bcatalin commented 2020-03-10 19:43:09 +00:00 (Migrated from github.com)

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

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
haripragadhish commented 2020-11-19 05:42:07 +00:00 (Migrated from github.com)

how to revert to 1.3.0

how to revert to 1.3.0
skrupenin1 commented 2021-01-31 03:39:14 +00:00 (Migrated from github.com)

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?

Did anybody got around this issue with version 1.4.0 for Angular 10? Comments on [Issue 1141](https://github.com/valor-software/ng2-file-upload/issues/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?
hanalice commented 2022-07-05 09:30:09 +00:00 (Migrated from github.com)

@skrupenin1 1.4.0 with angular11 not worked either, "'FileUploadModule' does not appear to be an NgModule class."

@skrupenin1 1.4.0 with angular11 not worked either, "'FileUploadModule' does not appear to be an NgModule class."
hanalice commented 2022-07-05 09:31:35 +00:00 (Migrated from github.com)

With 1.4.0 importing this way worked.

import { FileUploader } from 'ng2-file-upload'

what's the version of angular? angular 9 and above??

> With 1.4.0 importing this way worked. > > import { FileUploader } from 'ng2-file-upload' what's the version of angular? angular 9 and above??
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#1129