StaticJsCMS / static-cms

A Git-based CMS for Static Site Generators
https://staticcms.org
MIT License
589 stars 52 forks source link

Automatic publicPath is not supported in this browser #457

Closed letoast closed 1 year ago

letoast commented 1 year ago

When trying to import the CMS in Sveltekit: https://stackblitz.com/edit/sveltejs-kit-template-default-hhgway?file=src%2Froutes%2F%2Bpage.svelte (give it some time and check the console)

I also tried it with a dynamic import inside onMount (to import it client-only)

const CMS = (await import('@staticcms/core')).default;
CMS.init({ config });

On Stackblitz the above test didn't do anything (probably didn't even import it), but on my local dev environment it produced the same error as in the title

KaneFreeman commented 1 year ago

This should be resolved with 1.2.6.

Also since you are not using react, you will need to use @staticcms/app instead of @staticcms/core.

letoast commented 1 year ago

This should be resolved with 1.2.6.

Also since you are not using react, you will need to use @staticcms/app instead of @staticcms/core.

Woah, you're fast. Great job and thank you! 🙏🙏