Closed paulchen closed 6 years ago
Had the same issue, so I changed the import to import("../node_modules/rxjs/internal/Observable"). Now i'm running into an No Provider for elementRef error + a redeclared ngDevMode variable
Hi, Could see some imports missing in the module, Just published 1.0.1, Can you please try?
This problem is gone now, thanks!
I installed angular-material-fileupload using
npm install angular-material-fileupload
and imported MatFileUploadModule into my Angular 6 application. Eventually I ended up with a bunch of compile errors:
ERROR in node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(14,44): error TS1005: ';' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(14,174): error TS1005: '(' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(15,5): error TS1128: Declaration or statement expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(18,16): error TS1005: ']' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(18,24): error TS1005: ',' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(18,25): error TS1136: Property assignment expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(18,34): error TS1005: ':' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(18,44): error TS1005: ',' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(21,15): error TS1005: ']' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(21,23): error TS1005: ',' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(21,24): error TS1136: Property assignment expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(21,33): error TS1005: ':' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(21,43): error TS1005: ',' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(24,22): error TS1005: ';' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(24,28): error TS1109: Expression expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(25,5): error TS1128: Declaration or statement expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(26,13): error TS1005: ',' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(26,19): error TS1005: ';' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(26,25): error TS1109: Expression expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(27,16): error TS1005: ';' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(27,22): error TS1109: Expression expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(28,16): error TS1005: ';' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(28,22): error TS1109: Expression expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(29,18): error TS1005: ';' expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(29,24): error TS1109: Expression expected. node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts(30,1): error TS1128: Declaration or statement expected.
The file node_modules/angular-material-fileupload/matFileUploadQueue/matFileUploadQueue.component.d.ts contains these line:
private _changeSubscription; /** Combined stream of all of the file upload remove change events. */ readonly fileUploadRemoveEvents: import("../../../../../../../Users/nchitham/workspace/angular-material-fileupload/node_modules/rxjs/internal/Observable").Observable<{}>; private files;
I think something went wrong here.
This file comes from registry.npmjs.org; direct link to the archive: https://registry.npmjs.org/angular-material-fileupload/-/angular-material-fileupload-1.0.0.tgz