William Albornoz

Results 7 comments of William Albornoz

Thanks, yes, I followed the tutorial step by step and I made a clean installation of sveltekit and tailwind elements too, but the error remains

@Ali-Amir the “document is not defined” error happens because you must import tw-elements inside onMount function and assign it to a variable to initialize components, for example: onMount(async () =>...

Thanks @Ali-Amir, I’ll probe it! Do you have tw-elements working properly? What version of sveltekit and tailwind elements are you using?

@Ali-Amir Wow that is weird, and you tried to assign the line inside console log to a variable? In my case to initialize components I had to do that because...

I've been able to fix some issues with the components mentioned above, at least the styles now load properly with the latest new version. The solution was to use initTE...

@Reneetjuh21 try the solution that I wrote above, I’m currently working in that way and everything works perfect.

Hi @joshbker, I'm using modals like this import { onMount } from 'svelte'; let te; let modalEditText: any; onMount(async () => { te = await import('tw-elements'); te.initTE({ Modal: te.Modal });...