Closed scrapix closed 1 year ago
Hi there! First of all, sorry for the slow reply. What type of environment are you running this in? It looks like a bundler issue to me, i.e something that needs changing in your sveltekit/vite/rollup config depending on what you're using. For example, is it possible you don't have typescript extensions/plugins enabled for whatever environment this is running in?
(If you already found a solution in the meantime, I'd be very greatful if you could post it here for others to see in the future. And so I can see if the documentation needs something adding)
https://stackblitz.com/edit/vitejs-vite-o6z51r?file=src/App.svelte
Here is a stackblitz of the example using the vite svelte-ts template as the base environment, hopefully this may help with debugging. If you're using SvelteKit, I think the standard defaults should work?
Hey Matt,
thank you for this great wrapper. - The defaults work perfectly! When trying your example
Im receiving an import error. Do you know what I'm doing wrong?