Redux-observable: Upgrade to rxjs 5.5.0 breaks... everything

Created on 20 Oct 2017  路  7Comments  路  Source: redux-observable/redux-observable

action$.ofType does not return what it used to return. .map, .mergeMap etc isn't there anymore.


Edit by @jayphelps:

As found by @evertbouw below, you can work around this by using:

// if you want patch everything
import 'rxjs/Rx';

// if you need a reference to everything
import * as Rx from 'rxjs/Rx';

This issue is being discussed over in the rxjs repo: https://github.com/ReactiveX/rxjs/issues/2984 馃憤 reactions are welcome, but +1 comments etc aren't necessary

Most helpful comment

If you used to do import "rxjs"; you can quickly fix it by doing import "rxjs/Rx";.

All 7 comments

I have same issue

I managed to get somethings working by importing operations one by one, but after some fighting did go back to 5.4.3

If you used to do import "rxjs"; you can quickly fix it by doing import "rxjs/Rx";.

@evertbouw Thanks for your help 馃憤 that fixes my problem my problem

Uh oh! Thanks all for reporting. The issue is with rxjs, I believe I've found the cause. Let's move this over to https://github.com/ReactiveX/rxjs/issues/2984 (no need to comment there, but you're welcome to 馃憤 it)

@evertbouw great find!!! Thank you!

Hey all, 5.5.1 of rxjs was released, which fixed this issue.

Should I switch back to importing rxjs, or whats the difference between rxjs ans rxjs/Rx?

Right now there is no difference. My completely personal opinion is that people should import just rxjs, not rxjs/Rx

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericis picture ericis  路  3Comments

subhaze picture subhaze  路  4Comments

ksaldana1 picture ksaldana1  路  4Comments

jayphelps picture jayphelps  路  4Comments

selfrefactor picture selfrefactor  路  7Comments