konstaui / konstaui.com

Konsta UI website
https://konstaui.com
30 stars 13 forks source link

Instructions for setting up Konsta UI with Sveltekit #38

Closed CapitalMarkets closed 6 months ago

CapitalMarkets commented 6 months ago

I'm unable to find instructions (that work) for setting Konsta UI up with SvelteKit.

Are there any docs or templates for doing this?

The stackblitz example provided in the Sveltekit Issues section uses Svelte() not Sveltekit()

The output I have so far looks like this (in case this gives anyone a clue as to my issue):

Screenshot from 2024-02-23 16-17-09

CapitalMarkets commented 6 months ago

Figured it out in the end :)

For those who are accustomed to working with ESM modules and ESM formatted configurations.

For some reason, your Tailwind and Postcss configuration must be in the CommonJS (CJS) format for this Konsta UI to do its thing.

I'm not sure why, beyond the fact that CJS/require statements are all over the Konsta UI codebase.

My output now is as follows: Screenshot from 2024-02-23 19-47-55