I keep getting this error when I import FileUpload in app.module.ts #1168

Open
opened 2021-02-09 11:03:22 +00:00 by Bondesvick · 3 comments
Bondesvick commented 2021-02-09 11:03:22 +00:00 (Migrated from github.com)

Something to do with ng2-fileil-upload not compatible with Angular Ivy.
does anyone know a way to work around this problem?

Error: node_modules/ng2-file-upload/file-upload/file-uploader.class.d.ts:38:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

This likely means that the library (ng2-file-upload) which declares FileUploader has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

38 export declare class FileUploader {
~~~~~~~~~~~~

Something to do with ng2-fileil-upload not compatible with Angular Ivy. does anyone know a way to work around this problem? Error: node_modules/ng2-file-upload/file-upload/file-uploader.class.d.ts:38:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class. This likely means that the library (ng2-file-upload) which declares FileUploader has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy. 38 export declare class FileUploader { ~~~~~~~~~~~~
aleksander351 commented 2021-04-11 20:36:00 +00:00 (Migrated from github.com)

Having a similar problem. Seems to be not compatible with Angular Ivy or Server Side Rendering.

This likely means that the library (ng2-file-upload) which declares FileUploadModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

Having a similar problem. Seems to be not compatible with Angular Ivy or Server Side Rendering. This likely means that the library (ng2-file-upload) which declares FileUploadModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
hanalice commented 2022-07-05 09:26:01 +00:00 (Migrated from github.com)

angular 12 and ng2-file-upload ^1.4.0 has the same problem: 'FileUploadModule' does not appear to be an NgModule class.

angular 12 and ng2-file-upload ^1.4.0 has the same problem: 'FileUploadModule' does not appear to be an NgModule class.
hanalice commented 2022-07-06 06:08:42 +00:00 (Migrated from github.com)

angular 12 and ng2-file-upload ^1.4.0 has the same problem: 'FileUploadModule' does not appear to be an NgModule class.

npm uninstall and npm install it works correctly.

> angular 12 and ng2-file-upload ^1.4.0 has the same problem: 'FileUploadModule' does not appear to be an NgModule class. npm uninstall and npm install it works correctly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#1168