Observable errors with Angular2 beta.12 and RxJs 5 beta.3 Observable errors with Angular2 beta.12 and RxJs 5 beta.3 angular angular

Observable errors with Angular2 beta.12 and RxJs 5 beta.3


Regarding operators, you need to import them manually since they aren't included in the Observable class by default.

For this you can do either:

import {Observable} from 'rxjs/Observable';import 'rxjs/add/operator/map';import 'rxjs/add/operator/share';

Or (to include all operators):

import {Observable} from 'rxjs/Rx';

Otherwise normally you don't need to define rxjs into your SystemJS configuration in the map block. Including the corresponding bundled file into a script tag is enough.


For VS2015 there's a workaround for this problem listed on GitHub here

As work arounds for now, you can replace C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TypeScript\typescriptServices.js with the file in https://raw.githubusercontent.com/Microsoft/TypeScript/Fix8518/lib/typescriptServices.js. First take a local backup though.

IMPORTANT: Be sure you're on VS2015 Update 2 and have TypeScript > 1.8.2 installed

(My VS would not start after replacing the file on Update 1)

I am using rxjs 5.0.0-beta.6 btw.