title: observable.throw is not a function
body: <p>I tried to implement catch handling in a service, but i've got an undefined function error in my console.</p>
  
  <p>This is the error message:</p>
  
  <blockquote>
    <p>TypeError:
    rxjs_internal_Observable__WEBPACK_IMPORTED_MODULE_2__.Observable.throw
    is not a function</p>
  </blockquote>
  
  <pre><code>import { Injectable } from '@angular/core';
  import { config } from '../../../config/config';
  import { HttpClient, HttpHeaders } from '@angular/common/http';
  import { catchError } from 'rxjs/operators';
  import { HttpResponseHandler } from './http-response-handler.service';
  import { Observable } from 'rxjs/internal/Observable';
  
  @Injectable()
  export class DataService&lt;T&gt; {
  
  constructor(
          protected url: string,
          protected httpClient: HttpClient,
          protected responseHandler: HttpResponseHandler
      ) { }
  
      getOneById&lt;T&gt;(id): Observable&lt;T&gt; {
          return this.httpClient
              .get&lt;T&gt;(config.ecmBackUrl + this.url + '/' + id)
              .pipe(catchError((err, source) =&gt; this.responseHandler.onCatch(err, source)));
      }
  }
  
  @Injectable()
  export class HttpResponseHandler {
  
      public onCatch(response: any, source: Observable&lt;any&gt;): Observable&lt;any&gt; {
         console.log(response);
      }
  }
  </code></pre>