sachinchoolur / lightGallery

A customizable, modular, responsive, lightbox gallery plugin.
https://www.lightgalleryjs.com/
Other
6.55k stars 1.29k forks source link

is it esm for vue? #1606

Closed fedottt closed 6 months ago

fedottt commented 8 months ago

hi, i use vue3 in esm

my file.html

<script type="importmap">
            {
                "imports": {
                    "vue": "../npm/node_modules/vue/dist/vue.esm-browser.js",                   
                    "lightgallery/vue": "../npm/node_modules/lightgallery/vue/LightGalleryVue.common.js"
                }
            }
        </script>
        <script type="module" src="<?php echo $conf['board_url_js']; ?>/file.js"></script>

in file.js

import { createApp, ref, nextTick } from 'vue'
import Lightgallery from 'lightgallery/vue'

and in that condition i take

Uncaught SyntaxError: The requested module 'lightgallery/vue' does not provide an export named 'default'

with UMD file same error

how to use it?

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.