-
Notifications
You must be signed in to change notification settings - Fork 44
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
Cannot read property 'forEach' of undefined #48
Comments
@Jordan4jc what version of ember and what version of ember-lazy-image are you using? |
Ember |
I just installed for the first time as well. Latest versions. "ember-cli": "1.13.13" "ember-lazy-image": "0.0.14" "ember": "~2.2.0". DEPRECATION: The in-viewport.js:21 Uncaught TypeError: Cannot read property 'forEach' of undefined Using lazy load in a foreach loop inside component. Loop worked fine before converting to lazy load.: |
in-viewport.js:21 is: var forEach = _ember['default'].EnumerableUtils.forEach; |
SOLUTION: I pulled the latest commit from the repo. It threw a much better error: Which shows the problem was wrong image url using handlebars. this is what I had been using prior to lazy-image: Didn't work as: so changed to done! @Jordan4jc should fix your problem too. |
still doesn't solve my problem, even if I put a static url in as the |
+1 i.e. this is bug in ember-in-viewport |
@twokul please, update addon in npm |
@Jordan4jc you can try add ember addon directly from github. this should solve you problem
|
I will give this a shot later and see how it fairs |
I am attempting to use this inside a component that is being rendered inside an
each
loopAny idea as to what is happening here?
The text was updated successfully, but these errors were encountered: