-
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
Does not work with SvelteKit SSR #977
Comments
Looks like we only use it for the "view source" in https://github.com/vega/vega-embed/blob/2dfdf591c86462077fc780dd717d40681ffed6aa/src/embed.ts#L4. It's a super simple library: https://github.com/lydell/json-stringify-pretty-compact/blob/main/index.js. Maybe if we update to v4, this issue goes away since that's esm? |
Could very well be. Are you planning to update vega-embed to v4? If so, I can test. |
Done. Try 6.29.0. |
Thanks for trying and thanks for pushing me to finally update this dependency across our stack. |
vega-embed
depends onjson-stringily-pretty-compact
, but that does not work when SSR is enabled:Disabling SSR via
export const ssr = false;
will fix things, but that is certainly not ideal.The text was updated successfully, but these errors were encountered: