Can someone assist with resolving this issue?
Error message: core.js:1542 ERROR TypeError: rxjs__WEBPACK_IMPORTED_MODULE_3__.Observable.throw is not a function
Software versions: Angular CLI: 6.0.8 / rxjs 6.2.1
import { Injectable } from '@angular/core';
import { User } from './../classes/user';
import { AppSettings } from './appSettings';
import { HttpClient,HttpHeaders, HttpParams } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { catchError, retry } from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
export class LoginService {
constructor(private http: HttpClient){ }
login(user:User): Observable<User> {
return this.http.post<User>(AppSettings.BASE_URL + "/login",user)
.pipe(catchError(this.handleServerError));
}
handleServerError(error: any | any) {
console.log(error.error || error.json() || error);
return Observable.throw(error.error || error.json() || error || 'Server error'); <<< ERROR
}
}