typescript flag in your components.json file.
components.json
jsconfig.json file:
jsconfig.json
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How to use shadcn-svelte with JavaScript.
typescript flag in your components.json file.
{
"style": "default",
"tailwind": {
"css": "src/routes/layout.css"
},
"typescript": false,
"aliases": {
"utils": "$lib/utils",
"components": "$lib/components",
"hooks": "$lib/hooks",
"ui": "$lib/components/ui"
},
"registry": "https://shadcn-svelte.com/registry"
}
jsconfig.json file:
{
"compilerOptions": {
"paths": {
"$lib/*": ["./src/lib/*"]
}
}
}