sachinchoolur / lightgallery.js

Full featured JavaScript image & video gallery. No dependencies
https://sachinchoolur.github.io/lightgallery.js/
Other
5.3k stars 596 forks source link

Errors preventing Lightgallery to work #123

Closed UisgeBeatha436 closed 3 years ago

UisgeBeatha436 commented 5 years ago

Working on the no-dependency version.

Describe the bug Two errors in the error console of FireFox Developer:

TypeError: window.lgModules is undefined ReferenceError: lightGallery is not defined

To Reproduce

Load the js-files in the following order:

  1. lightgallery.js
  2. lg-thumbnail.js
  3. lg-util.js

In the gallery page I have:

<div id="gallery">
    call various images as shown on the documentation page 
</div>

Additional context Lightgallery version 1.1.2

Any ideas what is the matter?

SubrataM3 commented 5 years ago

Hi,

It seems that you are trying to load the js files from the src folder? you should use files from dist folder.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. If the issue is still valid for version 2.x, please re-open. Apologize for not responding on time. Thank you for your contributions.