rxjs icon indicating copy to clipboard operation
rxjs copied to clipboard

fix: innerFrom throw ObservableTypeError when Observable Class is different (different version, duplicate code)

Open MeetzhDing opened this issue 3 years ago • 2 comments

When using webpack or rollup, we may bundle different version rxjs into websites.

Function using innerFrom (eg. mergeMap, from) will throw InvalidObservableTypeError when input is not instanceOf current version Observable, and this problem is to hard to locate.

The util isObservable can solve this problem.

@benlesh

MeetzhDing avatar Apr 02 '22 16:04 MeetzhDing

@benlesh please have a look at this pr.

MeetzhDing avatar Aug 09 '22 05:08 MeetzhDing

Same issue is happening with bundler like Vite

tien avatar May 30 '23 00:05 tien