I'm importing forkJoin
as
import 'rxjs/add/observable/forkJoin';
but I'm still getting an error in my console:
__WEBPACK_IMPORTED_MODULE_2_rxjs_Observable__.a.forkJoin is not a function
I don't get this error in the Angular CLI compiler (using ng serve
) nor does VS Code complain. Is there a different method of running forkJoin now? I'm running the latest build of Angular (5.*), with RxJS 5.5.*.
As requested, it's being called as thus:
Observable.forkJoin(
this.eventService.getTypes().first(),
this.eventService.getDates().first()
).pipe(