Skip to content
This repository has been archived by the owner on Apr 25, 2018. It is now read-only.

Cannot read property 'Symbol(Symbol.iterator)' of undefined #91

Closed
jadbox opened this issue May 3, 2016 · 4 comments
Closed

Cannot read property 'Symbol(Symbol.iterator)' of undefined #91

jadbox opened this issue May 3, 2016 · 4 comments

Comments

@jadbox
Copy link
Contributor

jadbox commented May 3, 2016

Getting this error in several places in my project when refactoring to use Yolk v1. I'm using the minified yolk build shown here: http://jsbin.com/noqaxayofo/edit?html,js,console,output

Rx.umd.js:13424Uncaught TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined

subscribeToResult   @   Rx.umd.js:13424
CombineLatestSubscriber._complete   @   Rx.umd.js:5774
Subscriber.complete @   Rx.umd.js:1297
ArrayObservable._subscribe  @   Rx.umd.js:2412
Observable.subscribe    @   Rx.umd.js:531
Observable.subscribe    @   Rx.umd.js:531
Observable.subscribe    @   Rx.umd.js:531
ConnectableObservable.connect   @   Rx.umd.js:2796
RefCountObservable._subscribe   @   Rx.umd.js:2850
Observable.subscribe    @   Rx.umd.js:531
Observable.subscribe    @   Rx.umd.js:531
CombineLatestSubscriber._complete   @   Rx.umd.js:5774
Subscriber.complete @   Rx.umd.js:1297
ArrayObservable._subscribe  @   Rx.umd.js:2412
Observable.subscribe    @   Rx.umd.js:531
Observable.subscribe    @   Rx.umd.js:531
SwitchMapSubscriber._innerSub   @   Rx.umd.js:10379
SwitchMapSubscriber._next   @   Rx.umd.js:10372
Subscriber.next @   Rx.umd.js:1272
BehaviorSubject._subscribe  @   Rx.umd.js:300
Observable.subscribe    @   Rx.umd.js:531
Observable.subscribe    @   Rx.umd.js:531
(anonymous function)    @   yolk.min.js:1
Observable.subscribe    @   Rx.umd.js:531
Observable.subscribe    @   Rx.umd.js:531
Observable.subscribe    @   Rx.umd.js:531
Observable.subscribe    @   Rx.umd.js:531
value   @   yolk.min.js:2
(anonymous function)    @   yolk.min.js:2
n   @   yolk.min.js:2
n   @   yolk.min.js:2
c   @   yolk.min.js:2
(anonymous function)    @   yolk.min.js:2
@jadbox
Copy link
Contributor Author

jadbox commented May 3, 2016

Seems to have something to do with using withLatestFrom with props members...

@LongLiveCHIEF
Copy link

You sure that's the right version link of your jsbin? the one i'm seeing doesn't have any errors.

@jadbox
Copy link
Contributor Author

jadbox commented May 3, 2016

@LongLiveCHIEF
It wasn't Yolk at all. I found out that in RxJS v5 that withLatestFrom and combineWith no longer accept an array of observables and instead use Rest style parameters. This error was triggered as Rx could not find the Rx symbol on the array value when that operation was performed. I've since replaced those calls with withLatestFrom.apply(null, obsArray) style calls.

@jadbox jadbox closed this as completed May 3, 2016
@LongLiveCHIEF
Copy link

yeah, I've had that quite often with the RxJS v5 beta... normally in the form of some sort of constructor not defined type of errors. 🍻

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

No branches or pull requests

2 participants