Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MeetzhDing
Copy link

@MeetzhDing MeetzhDing commented Apr 2, 2022

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
Copy link
Author

@benlesh please have a look at this pr.

@tien
Copy link

tien commented May 30, 2023

Same issue is happening with bundler like Vite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants