angular-material-fileupload
angular-material-fileupload copied to clipboard
ng build --prod Failed!
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.
Same issue here Unfortunately :\
I get the same error when trying to build release.. on debug mode everything works fine
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?
+1
+1
+1
+1. Anyone looking into fixing this?
+1
+1
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
+1
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.