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 when adding shadcn/ui component. #78

Open
bigdeejay opened this issue Jan 14, 2025 · 0 comments
Open

Error when adding shadcn/ui component. #78

bigdeejay opened this issue Jan 14, 2025 · 0 comments

Comments

@bigdeejay
Copy link

Error when adding shadcn/ui component.

~\Desktop\dev\projects\search-api-dashboard git:[main] pnpm dlx shadcn@latest add sidebar

Packages: +170
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 170, reused 123, downloaded 47, added 170, done
✔ Checking registry.
⠋ Updating tailwind.config.js
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

ENOENT: no such file or directory, open 'C:\Users\*******\Desktop\dev\projects\search-api-dashboard\tailwind.config.js'

I found an error in components.json. The tailwind.config setting was pointing to tailwind.config.js, but the correct setting is tailwind.config.ts. After fixing this configuration, I was able to add the desired UI components successfully.

✔ Checking registry.
✔ Updating tailwind.config.ts
✔ Updating app\globals.css
✔ Installing dependencies.
✔ Created 8 files:
  - @\components\ui\sidebar.tsx
  - @\components\ui\button.tsx
  - @\components\ui\separator.tsx
  - @\components\ui\sheet.tsx
  - @\components\ui\tooltip.tsx
  - @\components\ui\input.tsx
  - @\hooks\use-mobile.tsx
  - @\components\ui\skeleton.tsx
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

1 participant