import {Rx} from "@reactivex/rxjs";
export clas Foo {
constructor() {
this.myUser = new Rx.BehaviorSubject(null);
}
}
However I’m getting:
ERROR in ./~/@reactivex/rxjs/index.js
Module not found: Error: Cannot resolve ‘file’ or ‘directory’ ./dist/cjs/Rx.KitchenSink in ~/dev/myproject/node_modules/@reactivex/rxjs
I also tried
import * as Rx from "rx";
Which fails in a similar way. Anybody have this working?
Note that as of latest version of Angular2/Ionic2 uses RxJS v5.0.0-beta, so be sure to read the migration readme as some of methods names has been changed.
If anyone interested in working example of Ionic2 Beta RxJS implementation, I made a chat example app available here.