You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just spent some time trying to get it to work with the npm package rx but it didn't work. I only noticed I had to use RxJS 5 (npm package rxjs) when I looked at the relevant tests file.
With RxJS 5 the examples work fine.
The errors were:
(toStream)
Uncaught TypeError: Object is not iterable
at getIterable (rx.all.js:2706)
at FromObservable.subscribeCore (rx.all.js:2634)
at FromObservable.tryCatcher (rx.all.js:63)
at setDisposable (rx.all.js:2082)
(fromStream)
Cannot read property fn of undefined
(forgot to save stack trace)
The text was updated successfully, but these errors were encountered:
@phiresky the goal is to be compatible with any stream library through Symbol.observable. Did you test it in an environment that supports Symbols without accidentally compiling / polyfilling down to ES5?
mweststrate
changed the title
Clarify that from/toStream only works with RxJS 5
toStream should produce an iterable, for better compatiblity with other libs
Jun 13, 2017
Smth related I think... benlesh/symbol-observable#38
In angular I had to add polyfill: import 'core-js/features/symbol/observable';
As mentioned above Symbol.observable is not supported for some reason in rxjs
Just spent some time trying to get it to work with the npm package rx but it didn't work. I only noticed I had to use RxJS 5 (npm package rxjs) when I looked at the relevant tests file.
With RxJS 5 the examples work fine.
The errors were:
(toStream)
(fromStream)
The text was updated successfully, but these errors were encountered: