airfranceklm / ng-lazy-image

Angular directive for loading responsive image when container (which is preventing reflow) is in viewport.
http://afklm.github.io/ng-lazy-image/
MIT License
351 stars 64 forks source link

Cannot read property 'one' of undefined #58

Closed musdy closed 7 years ago

musdy commented 8 years ago

Hello guys,

I continuously get the error when the view is trying to change:

TypeError: Cannot read property 'one' of undefined at _checkIfNewImage (lazy-image.js:459) at lazy-image.js:523 at angular.js:17918 at completeOutstandingRequest (angular.js:5552) at angular.js:5829

Is there any reason why this is happening? Thanks for the great module.

SquadraCorse commented 8 years ago

which version do you use?

Op 11 mrt. 2016 om 02:07 heeft Mustafa Demirkent notifications@github.com het volgende geschreven:

Hello guys,

I continuously get the error when the view is trying to change:

TypeError: Cannot read property 'one' of undefined at _checkIfNewImage (lazy-image.js:459) at lazy-image.js:523 at angular.js:17918 at completeOutstandingRequest (angular.js:5552) at angular.js:5829

Is there any reason why this is happening? Thanks for the great module.

M — Reply to this email directly or view it on GitHub.

levuro commented 8 years ago

for us it disappeared with version 0.3.1 - but this version lead to other problems

musdy commented 8 years ago

I was using afkl-lazy-image#~0.2.2

Which version should i update to? 0.2.3 or 0.3.1?

SquadraCorse commented 8 years ago

Joiz can you name them? Musday i think it is best to take the version before :P or simply try latest.

levuro commented 8 years ago

Sometimes image don't appear if you scroll down on the page - we release today again with 0.2.3 so that problem will not be visible any longer - i can deploy the 0.3.1 version to staging after work tonight if it help.

http://www.joiz.de/#!/

musdy commented 8 years ago

Yes I have seen that bug as well. That will be great if you can push that Joiz. Thanks in advance.

musdy commented 8 years ago

Hey @joiz, any update on 0.3.1's latest stable fix? I have upgraded to 0.2.3, but still have the error. Thanks.

bakaproject commented 8 years ago

Any updates on this?

divsbhalala commented 7 years ago

I am facing issues as TypeError: Cannot read property 'one' of undefined

divsbhalala commented 7 years ago

@musdy use this one "ng-directive-lazy-image": "0.2.2", instead of "ng-directive-lazy-image": "afkl-lazy-image#~0.2.2".

I have resolve my issues with this solutions