angular-material-fileupload icon indicating copy to clipboard operation
angular-material-fileupload copied to clipboard

ng build --prod Failed!

Open SamerGhantous opened this issue 6 years ago • 12 comments

the component works fine.. but when trying to build a production release i got the following error: ERROR in : Unexpected value 'MatFileUploadModule in [MyProject]/node_modules/angular-material-fileupload/matFileUpload.module.d.ts' imported by the module 'AppModule in [MyProject]/src/app/app.module.ts'. Please add a @NgModule annotation.

SamerGhantous avatar Sep 12 '18 06:09 SamerGhantous

Same issue here Unfortunately :\

oz-yariv avatar Sep 12 '18 08:09 oz-yariv

I get the same error when trying to build release.. on debug mode everything works fine

codeodeveloper avatar Sep 12 '18 13:09 codeodeveloper

Facing same issue when trying to build. ng build --prod

It will work if I will turn off the build optimizer, but this is not correct, can you please resolve the issue?

supinder123 avatar Sep 14 '18 12:09 supinder123

+1

jjaskulowski avatar Sep 18 '18 14:09 jjaskulowski

+1

csapinoso avatar Oct 01 '18 21:10 csapinoso

+1

daulet2030 avatar Oct 08 '18 03:10 daulet2030

+1. Anyone looking into fixing this?

mehdirajani5 avatar Oct 08 '18 11:10 mehdirajani5

+1

sebcza avatar Oct 16 '18 10:10 sebcza

+1

meshoc avatar Oct 17 '18 09:10 meshoc

I'm running into the same error. This is a blocker for me. Too bad as this component did look like what I needed. I'll now try to create my own component using the explanation at https://malcoded.com/posts/angular-file-upload-component-with-express

pmeems avatar Oct 18 '18 13:10 pmeems

+1

sarahosama avatar Dec 20 '18 14:12 sarahosama

Trying to compile for production with Angular 6

When you install from NPM, it seems that the following files are missing in 'node_modules': angular-material-fileupload/matFileUploadQueue.scss angular-material-fileupload/matFileUpload/matFileUpload.component.html angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.html angular-material-fileupload/bytes.pipe.js

Was able to copy the .scss and html files from GitHub into the project, but not the bytes.pipe.js as in the GitHub project it is a .ts file.

I think that the packaging has an issue, which is why these files are not preset.

andrefortin avatar Feb 04 '19 02:02 andrefortin