Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it esm for vue? #1606

Closed
fedottt opened this issue Mar 13, 2024 · 1 comment
Closed

is it esm for vue? #1606

fedottt opened this issue Mar 13, 2024 · 1 comment
Labels

Comments

@fedottt
Copy link

fedottt commented Mar 13, 2024

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?

Copy link

stale bot commented May 15, 2024

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.

@stale stale bot added the v1 label May 15, 2024
@stale stale bot closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant