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

Error: UMD and IIFE output formats are not supported for code-splitting builds. #59

Closed
ralyodio opened this issue Mar 16, 2020 · 2 comments
Labels
invalid This doesn't seem right

Comments

@ralyodio
Copy link

Error: UMD and IIFE output formats are not supported for code-splitting builds.

get this error.

@kaisermann
Copy link
Owner

kaisermann commented Mar 16, 2020

This is not a svelte-i18n issue. The IIFE and UMD formats are self-contained by definition, you can't export/import pieces of other UMD/IIFE because its contents are fully enclosed.

If you're using rollup, which I assume you are, you have to use the ESM, AMD, or SystemJS format. Webpack doesn't have this problem because it has its runtime to replicate the import/export environment.

@kaisermann kaisermann added the invalid This doesn't seem right label Mar 16, 2020
@vvdt
Copy link

vvdt commented Sep 28, 2022

Adding this for other people that end up here after a google search, the following solution solved it for me:
https://stackoverflow.com/questions/64679496/svelte-import-dependency-package-with-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants