We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shadcn-svelte@latest update utils
I've opted out of typescript when installing shadcn-svelte. After updating to 0.10, I get the following error:
Expected ',', got 'ClassValue'
This is coming from utils.js:
utils.js
import { type ClassValue, clsx } from "clsx"; ^ |-- Error import { twMerge } from "tailwind-merge"; import { cubicOut } from "svelte/easing"; import type { TransitionConfig } from "svelte/transition"; export function cn(...inputs: ClassValue[]) { ^ |-- Error return twMerge(clsx(inputs)); } type FlyAndScaleParams = { y?: number; x?: number; start?: number; duration?: number; };
I've also tried updated my packages with bun update, but I have the same error as before.
bun update
No response
System: OS: Linux 6.7 Fedora Linux 39 (KDE Plasma) CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor Memory: 47.78 GB / 62.68 GB Container: Yes Shell: 5.2.26 - /bin/bash Binaries: Node: 20.10.0 - /usr/bin/node Yarn: 1.22.21 - /usr/bin/yarn npm: 10.2.3 - /usr/bin/npm bun: 1.0.17 - ~/.bun/bin/bun npmPackages: @sveltejs/kit: ^2.0.0 => 2.5.5 bits-ui: ^0.21.1 => 0.21.1 cmdk-sv: ^0.0.17 => 0.0.17 formsnap: ^1.0.0 => 1.0.0 lucide-svelte: ^0.364.0 => 0.364.0 mode-watcher: ^0.3.0 => 0.3.0 svelte: ^5.0.0-next.1 => 5.0.0-next.90 svelte-sonner: ^0.3.21 => 0.3.21
blocking all usage of shadcn-svelte
The text was updated successfully, but these errors were encountered:
thank you for the detailed reproduction. looking into this now!
Sorry, something went wrong.
utils
Should be fixed now in [email protected]
[email protected]
Thanks ! Fastest fix ever !
Successfully merging a pull request may close this issue.
Describe the bug
I've opted out of typescript when installing shadcn-svelte. After updating to 0.10, I get the following error:
This is coming from
utils.js
:Reproduction
I've also tried updated my packages with
bun update
, but I have the same error as before.Logs
No response
System Info
Severity
blocking all usage of shadcn-svelte
The text was updated successfully, but these errors were encountered: