strawdynamics / luminous

A simple, lightweight, no-dependencies JavaScript lightbox
BSD 2-Clause "Simplified" License
777 stars 70 forks source link

What is the proper way to import LuminousGallery? #612

Open strandofgenius opened 1 year ago

strandofgenius commented 1 year ago

In a previous project I was able to import the LuminousGallery class this way.

import LuminusGallery from '../../node_modules/luminous-lightbox/dist/Luminous.min.js';

However, this no longer seems to work with release 2.4.0. It gives me the following console error

Uncaught SyntaxError: ambiguous indirect export: default

I did try and use Luminous.min.js directly and that gave me a different error.

TypeError: right-hand side of 'in' should be an object, got undefined

Is there something I'm missing here?