I am receiving an error when trying to build my application using angular 6 and have no idea what to do.
Module rxjs not found see this
Module not found ..Cannot resolve module 'rxjs/operators/toPromise
what should i do ?
// the contact.service.ts
import { Injectable } from '@angular/core';
import { Contact } from './contact';
import { Http, Response } from '@angular/http';
import 'rxjs/add/operator/toPromise';
@Injectable()
export class ContactService {
private contactsUrl = '/api/contacts';
constructor (private http: Http) {}
.......
}