Skip to content
New issue

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

Error on basic button example #1037

Closed
bertday opened this issue Feb 12, 2025 · 1 comment
Closed

Error on basic button example #1037

bertday opened this issue Feb 12, 2025 · 1 comment

Comments

@bertday
Copy link

bertday commented Feb 12, 2025

Hello again,

I'm working through the Installation docs and trying the <Button> example at the bottom of the page.

I'm getting this error:

[plugin:vite:import-analysis] Failed to resolve import "class-variance-authority" from "src/components/ui/button/index.ts". Does the file exist?

I followed all the steps here (with the exception of Tailwind installation, which as I noted in #1036 are out of step with the official Tailwind docs as of version 4.0).

As I understand it this means cva can't be found. What step in the instructions is responsible for installing it? Maybe I missed that step.

Thank you for any help understanding this!

@sadeghbarati
Copy link
Collaborator

Could you create a minimal Stackblitz playground? Also, are you in TypeScript or JavaScript project?

Closing for now will reopen after repro

@sadeghbarati sadeghbarati closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants