sek-consulting / solid-ui

Beautifully designed components. Built with Kobalte & corvu. Styled with Tailwind CSS.
https://www.solid-ui.com
MIT License
680 stars 25 forks source link

Vanilla SolidJS project needs vite-tsconfig-paths to resolve ~/* #52

Closed SilentRhetoric closed 3 months ago

SilentRhetoric commented 5 months ago

The approach of setting "paths": { "~/*": [ "./src/*" ] } in tsconfig.json does not work in a vanilla SolidJS + Vite project. Installing vite-tsconfig-paths and using it as a Vite plugin resolves the issue.

Perhaps the docs could cover this, the code snippets could be set up in such a way that this paths resolution approach is not needed, or the init CLI command could install and configure this Vite dependency?

sek-consulting commented 5 months ago

Thanks for the feedback! This will be added to the pool for the big cli overhaul I want to do the next weeks :)

sek-consulting commented 3 months ago

The docs now feature a step by step guide for vite that covers this exact problem: https://www.solid-ui.com/docs/installation/vite