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

Cant build in prod mode

Open Jonesie opened this issue 7 years ago • 31 comments
trafficstars

I get the following error doing a prod build - but it works fine in dev mode.

ERROR in : Unexpected value 'MatFileUploadModule in C:/dev/blah/src/blah/node_modules/angular-material-fileupload/matFileUpload.module.d.ts' imported by the module 'DesignModule in C:/dev/blah/src/blah/src/app/design/design.module.ts'. Please add a @NgModule annotation.

Latest version of fileupload and Angular 5.

Jonesie avatar Apr 01 '18 12:04 Jonesie

+1

speedandfunction-anri avatar Apr 09 '18 12:04 speedandfunction-anri

+1

vrudikov avatar Apr 09 '18 12:04 vrudikov

Exact same issue for me too.

rastographics avatar Apr 09 '18 14:04 rastographics

I just included the source in my project rather than the NPM, works fine. However, I now get a circular reference warning:

WARNING in Circular dependency detected: src\app\comps\fileupload\matFileUploadQueue\matFileUploadQueue.component.ts -> src\app\comps\fileupload\matFileUpload\matFileUpload.component.ts -> src\app\comps\fileupload\matFileUploadQueue\matFileUploadQueue.component.ts

WARNING in Circular dependency detected: src\app\comps\fileupload\matFileUpload\matFileUpload.component.ts -> src\app\comps\fileupload\matFileUploadQueue\matFileUploadQueue.component.ts -> src\app\comps\fileupload\matFileUpload\matFileUpload.component.ts

Jonesie avatar Apr 10 '18 00:04 Jonesie

I just included the source in my project rather than the NPM, works fine. However, I now get a circular reference warning

Same results

vrudikov avatar Apr 10 '18 13:04 vrudikov

+1

meredrica avatar Apr 14 '18 22:04 meredrica

+1

vikaskumar81 avatar Apr 29 '18 19:04 vikaskumar81

ERROR in : Unexpected value 'MatFileUploadModule in node_modules/angular-material-fileupload/matFileUpload.module.d.ts' imported by the module 'CampaignModule in panel/src/app/campaign/campaign.module.ts'. Please add a @NgModule annotation.

vikaskumar81 avatar Apr 29 '18 19:04 vikaskumar81

+1

imbipow avatar May 26 '18 04:05 imbipow

  • 1

jruizx avatar Jun 01 '18 13:06 jruizx

I moved this into an Angular 6 angular/cli project and it worked fine in the build process? When I finish the project I'm on i'll take a shit at seeing if I can resolve the issue.

craiglonsdale avatar Jun 14 '18 05:06 craiglonsdale

I'm on an Angular 6 project and I have the same issue ! any clue ?

devHamza avatar Jul 02 '18 13:07 devHamza

I think one of us is going to have to fix this. 😎

Jonesie avatar Jul 02 '18 22:07 Jonesie

That component looks awesome. Cheers!

On Tue, Jul 3, 2018 at 6:01 AM Hamza [email protected] wrote:

For me I switched to this one https://www.npmjs.com/package/angular2-image-upload (in my case I had to upload images only)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nishantmc/angular-material-fileupload/issues/11#issuecomment-401962880, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQwWbTrXSm8v92XRg7iZz9aMD1yAxw0ks5uCqZagaJpZM4TCznx .

Jonesie avatar Jul 03 '18 00:07 Jonesie

+1

andersonleite avatar Jul 23 '18 17:07 andersonleite

+1

thomedw avatar Aug 16 '18 10:08 thomedw

I'm on an angular6 project too with same issue, anyone has fixed this?

marcusrx avatar Aug 27 '18 13:08 marcusrx

I met same issue.Any solution for this issue?

zhangsword avatar Aug 29 '18 08:08 zhangsword

+1

guernica0131 avatar Sep 02 '18 01:09 guernica0131

Did anyone resolve the issue? is there any hope?

lovep34 avatar Sep 25 '18 06:09 lovep34

Use another.

On Tue, Sep 25, 2018 at 1:55 PM lovep34 [email protected] wrote:

Did anyone resolve the issue? is there any hope?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nishantmc/angular-material-fileupload/issues/11#issuecomment-424228263, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQwWcZlwcWAe_zenssz8GwL8doigs7pks5uedNqgaJpZM4TCznx .

Jonesie avatar Sep 25 '18 07:09 Jonesie

I just included the source in my project rather than the NPM, works fine. However, I now get a circular reference warning:

WARNING in Circular dependency detected: src\app\comps\fileupload\matFileUploadQueue\matFileUploadQueue.component.ts -> src\app\comps\fileupload\matFileUpload\matFileUpload.component.ts -> src\app\comps\fileupload\matFileUploadQueue\matFileUploadQueue.component.ts

WARNING in Circular dependency detected: src\app\comps\fileupload\matFileUpload\matFileUpload.component.ts -> src\app\comps\fileupload\matFileUploadQueue\matFileUploadQueue.component.ts -> src\app\comps\fileupload\matFileUpload\matFileUpload.component.ts

angular.json file please add option follow by { "projects": { "my-project": { "architect": { "build": { "options": { "showCircularDependencies": false } } } } } }

chienka avatar Sep 27 '18 08:09 chienka

+1

Zuckabub avatar Oct 23 '18 21:10 Zuckabub

+1

sarahosama avatar Dec 20 '18 14:12 sarahosama

+1 I am working on an Angular 7 project and have the same issue.

gvdmiero avatar Jan 16 '19 10:01 gvdmiero

you could disable the warning being displayed , in angular.json "build": { "builder": "@angular-devkit/build-angular:browser", "options": { .. "showCircularDependencies": false, }

MVTec avatar Jan 30 '19 14:01 MVTec

+1 Any solutions? I can't build using --prod. I got the below error

ERROR in ../angular-material-fileupload/matFileUpload.module.ts(13,2): Error during template compile of 'MatFileUploadModule' Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'NgModule' 'NgModule' calls 'ɵmakeDecorator'

arasan-augment avatar Mar 21 '19 12:03 arasan-augment

+1

arasan-augment avatar Mar 21 '19 12:03 arasan-augment

please help, same issue here.

  "dependencies": {
    "@angular/animations": "~8.1.0",
    "@angular/cdk": "^8.1.1",
    "@angular/common": "^8.1.2",
    "@angular/compiler": "~8.1.0",
    "@angular/core": "^8.1.2",
    "@angular/flex-layout": "^8.0.0-beta.26",
    "@angular/forms": "~8.1.0",
    "@angular/material": "^8.1.1",
    "@angular/material-moment-adapter": "^8.1.3",
    "@angular/platform-browser": "~8.1.0",
    "@angular/platform-browser-dynamic": "~8.1.0",
    "@angular/router": "~8.1.0",
    "@auth0/angular-jwt": "^3.0.0",
    "@mat-datetimepicker/core": "^2.0.1",
    "@mat-datetimepicker/moment": "^2.0.1",
    "@material/button": "^3.1.0",
    "@material/card": "^3.1.0",
    "@material/form-field": "^3.1.0",
    "@material/grid-list": "^3.1.0",
    "@material/layout-grid": "^3.1.0",
    "@material/textfield": "^3.1.0",
    "angular-material-fileupload": "^2.0.0",
    "chroma-js": "^2.0.6",
    "croppie": "^2.6.4",
    "hammerjs": "^2.0.8",
    "jwt-decode": "^2.2.0",
    "moment": "^2.24.0",
    "ng-image-slider": "^2.0.1",
    "ng-pick-datetime": "^7.0.0",
    "ngx-countdown": "^8.0.1",
    "ngx-cropper": "^2.0.0-beta",
    "ngx-croppie": "^3.0.0",
    "ngx-image-cropper": "^1.4.1",
    "ngx-material-timepicker": "^4.0.2",
    "rxjs": "^6.4.0",
    "rxjs-compat": "^6.5.2",
    "tslib": "^1.9.0",
    "yarn": "^1.17.3",
    "zone.js": "~0.9.1"
  },

paolodina avatar Oct 03 '19 11:10 paolodina

ERROR in ../angular-material-fileupload/matFileUpload.module.ts(13,2): Error during template compile of 'MatFileUploadModule' Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'NgModule' 'NgModule' calls 'ɵmakeDecorator'.

garg10may avatar Feb 08 '20 15:02 garg10may