-
Notifications
You must be signed in to change notification settings - Fork 7
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
svelte-vega improperly packaged. Invalid UMD file in main. #545
Comments
Hi! did you try adding this to the config:
|
Hi! Thanks for the quick response! This is the config that fails https://github.com/endremborza/qft-viz/blob/main/svelte.config.js the I also tried
which gave a different error but broke the dev server |
Hmmmm - so I did rewrite this for sveltekit on another branch: https://github.com/vega/svelte-vega/tree/sveltekit if you want to try it from dev. I have plans to rewrite it fully for sveltekit, but since it's not at V1 I don't want to have to update it multiple times. I'll try to get to it next week but don't think I can fix it in the next day or two :/ |
Thank you! I will look into whether this branch works or not I and post it here. I really hope vega will end up working with svelte and sveltekit. meanwhile, is there another straightforward way to compile and export a svelte app with vega to be hosted as a static site like gh-pages? |
You can use vega-embed directly: https://github.com/vega/vega-embed |
the sveltekit branch fails like this:
|
Sounds good I'll look into it! As for this:
You can just use normal svelte |
I attempted to fix this in #561 but I am still running into an issue for SvelteKit - I get the error:
Which seems to be due to missing fields in If someone can spot the issue please let me know! |
@cabreraalex do you recall why you closed this? Looks like vite still doesn't like embed: #868. |
Hello!
I have been redirected from sveltekit, with the instruction:
details are in this issue,
sveltejs/kit#5325
but in short, build fails with
SyntaxError: Named export 'vega' not found. The requested module 'vega-embed' is a CommonJS module
after the simplest possible inclusion of svelte-vegasvelte-vega version is
1.1.1
I did read #90 and #210 but I couldn't find progress.
I would be happy to contribute but unfortunately I am very new to svelte and javascript in general, but I do believe that svelte-vega has great potential, and is by far the best way to create an interesting static dashboard I have found. It's such a shame that the build fails like this.
The text was updated successfully, but these errors were encountered: