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

2 comments:

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

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

    ReplyDelete