Closed kobe-ra closed 5 months ago
Thanks for raising the issue.
If neccessary I'll create a new project with the same setup tomorrow.
Please create the reproduction. It's easier for us to fix if we have a complete repro to work with, especially when it uses outside tech that we may not be familiar with!
Please provide a reproduction.
i also wrote the readme. if you have any troubles running it i can help.
the js part resides in /resources/js
@kobe-ra
Your jsconfig.json
is missing path aliases in the reproduction, which is causing this issue (I'm not quite sure why it was working in previous versions in the first place either 🤔).
Configuring the following will fix your issue:
components.json
{
"$schema": "https://shadcn-svelte.com/schema.json",
"style": "new-york",
"typescript": false,
"tailwind": {
"config": "tailwind.config.js",
"css": "resources/css/app.pcss",
"baseColor": "zinc"
},
"aliases": {
"components": "@/components",
"utils": "@/services/utils"
}
}
jsconfig.json
{
"compilerOptions": {
"paths": {
"@/*": ["./resources/js/*"]
}
}
}
However, the error presented in the issue should definitely be more descriptive. Invalid type: Expected string but received undefined
is neither particularly meaningful, nor helpful. We'll keep this issue open until that's fixed.
Thank you!
Describe the bug
I cannot use the add command in version 0.9.3 error message:
Invalid type: Expected string but received undefined
Tested version 0.9.2, which works properly.Reproduction
Use command
npx shadcn-svelte@latest add accordion
in Laravel-Inertia-Svelte project. No sveltekit, no typescript. If neccessary I'll create a new project with the same setup tomorrow.Logs
No response
System Info
Severity
annoyance