Prerequisites
💥 Demo Page
Explanation
-
What is the expected behavior?
I expect for the dist/tagify.esm.js to load normally.
-
What is happening instead?
SvelteKit doesn't render.
-
What error message are you getting?
SyntaxError: Unexpected token 'export'
Workaround
Thanks to SvelteKit documentation I was able to get it to work by adding "@yaireo/tagify" to ssr.noExternal in vite.config.ts - but docs say it should be a temporary workaround.
Prerequisites
💥 Demo Page
Explanation
What is the expected behavior?
I expect for the
dist/tagify.esm.jsto load normally.What is happening instead?
SvelteKit doesn't render.
What error message are you getting?
SyntaxError: Unexpected token 'export'Workaround
Thanks to SvelteKit documentation I was able to get it to work by adding
"@yaireo/tagify"tossr.noExternalinvite.config.ts- but docs say it should be a temporary workaround.