Friday, July 15, 2016

Angular2 fromPromise Does Not Exist On Type 'typeof Observable'

Problem:
In VS2015, using Angluar 2, getting the following error: fromPromise Does Not Exist On Type 'typeof Observable'

Solution:
Explicitly import fromPromise operator e.g.

import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/fromPromise';

5 comments:

  1. Wow, nice shot. :) Exactly what I needed!

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. y which they built up their first casual instruction of information of the sea streams, climate conditions, cruising practice, astronavigation, and star maps. More about the author

    ReplyDelete
  4. Try the games on your android gadget out today and check whether you aren't snared shape the word go. When you begin, you won't have the capacity to quit playing these great games. AD List 24

    ReplyDelete
  5. PCs and correspondence advancements likewise advance more market-like types of generation and appropriation.top entrepreneur movies about sales

    ReplyDelete