-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Double tailwind.config #1437
Comments
after running the init and when it's prompting where the tailwind.config file, press TAB and edit the "js" to "ts" |
Thank you. I didn't realize the grey text can be switched. |
but if we just edit js to ts manually we dont get benefit from typescript, because the file that get install still javascript without a type. **edit: manually i meant here is not change the filename directly but manually change when get ask where is your tailwind.config.js located? it would be better if it could be installed automatically as .ts if we use next.js --typescript |
facing the same issue😂 |
Don't edit the tailwind.config file directly from js to ts or anything like that. Right after installing Run the CLI When you will be ask where is your tailwind.config.js located?, just edit the placeholder tailwind.config.js by pressing TAB and changing the js to ts. |
yes sir, i tried that, When i get ask where is your tailwind.config.js located? i used TAB and changing the name from .js to .ts, but it still install the .js code in it right? |
Using the following config `import type { Config } from "tailwindcss"; const config: Config = { export default config; |
IMHO |
I'm having this problem as well, using the boilerplate Platforms by Vercel and it have a tailwind.config.js, when I run npx shadcn-ui@latest init it creates a tailwind.config.ts and break my whole application... |
0Solution
the most important one which are casing this issue are two :
if you have created src directory for app router while creating next js project then you must write it like this: |
@burhan-maliksher like I said, I'm not creating a project from scratch, I'm using the Plataforms boilerplate by Vercel... When I run the
Code_cvfYmPlxgX.mp4 |
maybe your npx is broken, try update your node js, if it's still broken you must write manual then, Manual Installation |
did you find solution?...same issue here. |
if you have an existing project and you don't want to init again: |
It worked for me. |
when we init shandcn-ui there is no option using tailwind.config.ts or tailwind.config.js, that's make we have two file tailwind.config if we use next.js --typescript
The text was updated successfully, but these errors were encountered: