我收到此错误" WEBPACK_IMPORTED_MODULE_1_rxjs_Rx .Subject.forkJoin不是函数"当对一个主题使用forkJoin时,对我做错了什么的任何建议?
import { Subject } from 'rxjs/Rx';
uploadImages(imgsToUpload: File[]): Subject<void> {
let subjImgs: Subject<void>[] = [];
let subj: Subject<void> = new Subject<void>();
if (imgsToUpload && imgsToUpload.length > 0) {
imgsToUpload.forEach(img => {
subjImgs.push(this.mediaResourceService.uploadFile(img));
});
Subject.forkJoin(subjImgs).subscribe(x => subj.next());
} else {
subj.next();
}
return subj;
}