core: Cannot use with rxjs 5.0.0-beta.2

I tried updating today to the latest version of ng2-translate but my app fails when ng2-translate tries to load /rxjs/add/observable/of. This module was properly added only in rxjs 5.0.0-beta3.

You can compare the main Rx files:

The issue was introduced in https://github.com/ocombe/ng2-translate/commit/4b78732e. I’m using rxjs 5.0.0-beta.2 as angular2.0.0-beta13 uses this exact same version.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 4
  • Comments: 22

Most upvoted comments

I have the same issue. Are there any temporary hotfixes?

Observable.of is added to Observable by calling import 'rxjs/add/observable/of';.

I just released a new version that removed most peer dependencies, included the dependency to RxJS. It’s still a dependency but since I use the same as Angular 2, I don’t need to specify it (I think). Let me know if it fixes some of your problems ?