nishantmc / angular-material-fileupload

A fileupload component based on angular-material design
MIT License
98 stars 77 forks source link

"Can't resolve" errors when ng-building with Angular 6 #15

Closed ghost closed 6 years ago

ghost commented 6 years ago

I'm trying to use the component in a small project, based on Angular 6 + Material

ng build produces:

ERROR in ./node_modules/angular-material-fileupload/matFileUpload.esm.js Module not found: Error: Can't resolve 'rxjs/observable/merge' in 'c:\...\node_modules\angular-material-fileupload' ERROR in ./node_modules/angular-material-fileupload/matFileUpload.esm.js Module not found: Error: Can't resolve 'rxjs/operators/startWith' in 'c:\...\node_modules\angular-material-fileupload'

ghost commented 6 years ago

Addition of:

"rxjs-compat": "6.0.0"

to my package.json seems to have resolved the problem