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';

8 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
  6. Despite the fact that the science and the cosmetics of technology electronics appears to be super muddled, it is honestly exceptionally clear and not as troublesome as individuals attempt to influence it to show up. Robot vacuum

    ReplyDelete
  7. Drivers on reserve at pickup focuses or on ordered rest breaks can get to the web and download documents and records. bobsweep reviews

    ReplyDelete
  8. hunting and enrolling down classes, pay educational cost and that notwithstanding being incorporated in the organization, and so on technology is likewise generally used to instruct and is esteemed by advanced education. bobsweep pro

    ReplyDelete