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

fix(components.json): tailwind config extension is wrong #9342

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marketsystems
Copy link

@marketsystems marketsystems commented Nov 19, 2024

symptoms:
when using website template default, if you then want to add more shadcn components on frontend it errors out because tailwind config extension is wrong in components.json:

example:

npx shadcn@latest add alert
✔ 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 'MYPROJECTPATHREMOVED\tailwind.config.js'

FIX:

Can be fixed simply by updating reference in components.json to tailwind.config.mjs

symptoms: when using website template default, if you then want to add more shadcn components on frontend it errors out because tailwind config extension is wrong in components.json:

example:

>npx shadcn@latest add sidebar
✔ 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 '*PROJECTPATHREMOVED*\tailwind.config.js'

Can be fixed simply by updating reference in components.json to tailwind.config.mjs
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

Successfully merging this pull request may close these issues.

1 participant