desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"
https://imagesloaded.desandro.com
MIT License
8.88k stars 1.15k forks source link

Uncaught TypeError: Cannot read property 'prototype' of undefined (imagesloaded.js:115) #264

Closed Firman95 closed 6 years ago

Firman95 commented 6 years ago

I got that error by running every test provided in the plugins with fresh install.

This is the code where the error comes from. ImagesLoaded.prototype = Object.create( EvEmitter.prototype ); Any idea why this happens?

desandro commented 6 years ago

Sounds like you're using imagesloaded.js, when you'll need the packaged version imagesloaded.pkgd.js

Firman95 commented 6 years ago

That solved the problem, thanks!

rmazarei commented 5 years ago

Thank you @desandro. Solved my problem too.

G3-Logic commented 5 years ago

Solved for me as well. So what is the difference between the packaged version and the unpackaged version?

desandro commented 5 years ago

So what is the difference between the packaged version and the unpackaged version?

The packaged version includes the other JS dependencies (currently, only ev-emitter) in the JS file.

The unpackage version does not include this file, as it is included module definition & in the manifest .json and will be added via module loader.

liu332906484 commented 3 years ago

Uncaught TypeError: Cannot read property 'imagesLoaded' of undefined why??