tagify
tagify copied to clipboard
SvelteKit: "SyntaxError: Unexpected token 'export'"
Prerequisites
- [x] I am running the latest version
- [x] I checked the documentation and found no answer
- [x] I checked to make sure that this issue has not already been filed
💥 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" to ssr.noExternal in vite.config.ts - but docs say it should be a temporary workaround.
why are you using the esm version of Tagify?