dkern / jquery.lazy

A lightweight, fast, feature-rich, powerful and highly configurable delayed content, image and background lazy loading plugin for jQuery & Zepto.
http://jquery.eisbehr.de/lazy
Other
1.02k stars 236 forks source link

TypeError: q is undefined - Webpack and jQuery.Lazy(); #195

Closed Sordum closed 5 years ago

Sordum commented 5 years ago

Hey,

I've got a problem with including into webpack. I installed it and I alway get the error "TypeError: q is undefined" in my browser console.

The Plugin is in my bundle.js, but I always get this error. What can I do to fix that?

Greetings... Paul

dkern commented 5 years ago

Please check your build process and the order of your scripts in your bundle. There seems to be an issue. And the question is, if this error belongs to Lazy or something else in your script too. But if you use original Lazy files there is not such error.