desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"

Home Page:https://imagesloaded.desandro.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Firman95 opened this issue · comments

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?

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

That solved the problem, thanks!

Thank you @desandro. Solved my problem too.

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

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.

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