title: Property 'of' does not exist on type 'typeof Observable'
body: <p>I am building an Angular5 project where I have to use http. I am using observable here, but when I am using 'of'</p>
  
  <pre><code> scope.fetchApi = Observable.of(data);
  </code></pre>
  
  <p>then it is giving me an error:</p>
  
  <pre><code>Property 'of' does not exist on type 'typeof Observable'. 
  </code></pre>
  
  <p>I had imported <code>'rxjs/add/observable/of';</code> also, but same error was there.
  I had also tried <code>import { Observable } from 'rxjs/Observable';</code> but it was throwing an error:</p>
  
  <pre><code>Module '"eclipse:angular5-example/node_modules/rxjs/Observable"' has no exported member 'Observable'.
  </code></pre>
  
  <p>You can see my code as below:</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { UserService } from './app.service';
  import { FetchApi } from '../models/fetch-api.model';
  import { Router } from '@angular/router';
  import { Observable } from 'rxjs';
  import  'rxjs/add/observer/of';
  
  @Component({
    selector: 'app-fetch-api',
    templateUrl: './fetch-api.component.html',
    styleUrls: ['./fetch-api.component.css']
  })
  //
    export class FetchApiComponent implements OnInit {
  
    fetchApi: Observable&lt;FetchApi[]&gt;;
  
    constructor(private router: Router, private userService: UserService) {
  
  
    }
  
    ngOnInit() {
       const scope = this;
      this.userService.getUsers()
        .subscribe( data =&gt; {
           scope.fetchApi = Observable.of(data);
          //this.fetchApi = data;
        });
    };
  
  
  
  }
  </code></pre>
  
  <p>Please shed some light on it. </p>