I get this error in angular-cli when I import rxjs, and do not know what is the source of the problem.
The path which I wrote is correct, double checked. I am new to the Angular, so feeling stuck. Here is the source code link https://github.com/EgomortIncognitus/bookstore
books.service.ts:
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/add/operator.map';
@Injectable()
export class BooksService {
constructor(private http: Http) { }
getAllBooks() {
return this.http.get('data/books.json').map(res => res.json());
}
}
books.service.ts