Why am I getting this error? TypeError: this.lasService.getLasDropDownOptions(…).pipe is not a function

Advertisements This returns the dropdown options available to be displayed. I’m assuming the problem is with the .pipe but I can’t seem to correct it. return this.lasService.getLasDropDownOptions(true) .pipe(takeUntil(this.unsubscribe)) .subscribe((lasOptions) => { return resolve(lasOptions.map((option) => { return option || []; })); }); } getLasDropDownOptions(refresh) { return this.getLasData(refresh) .pipe(takeUntil(this.unsubscribe)) .subscribe((response) => { return response.map((las) => { las.displayValue… Read More Why am I getting this error? TypeError: this.lasService.getLasDropDownOptions(…).pipe is not a function