Closed yangenmanuel closed 1 week ago
+1
I was so surprised the first time it happened. I had to undo the change and manually copy over the edits. I agree it should update the config and not overwrite what's already there.
@yangenmanuel Yes, or what one can do it init the shadcn at the first step just after creating next app and then you can include more tailwind config in it so that it doesn't override.
This was pretty annoying, I had written a tailwind config and not commited yet, then shadcn overwrote the file without even displaying a warning.
@yangenmanuel Yes, or what one can do it init the shadcn at the first step just after creating next app and then you can include more tailwind config in it so that it doesn't override.
Thats's an option but, what if in an existing project i want to add shadcn? At least you have to receive a feedback from the CLI saying something like "creating new tailwind config file" or "your tailwind configs will be overrided". The ideal should be an update on the existing file
Agree, this just happened to me. Luckily I was able to revert with Git.
Just lost my tailwind config ðŸ˜... Please fix this guys, a warning will be sufficient for now!
It overwrites both tailwind.config.js and global.css.
How to deal with this issue?
any updates here???
How to deal with this issue?
There's a temporary solution, as follows; pass different path to each file which may get overwritten, and then merge all the files manually with changing paths in components.json
a warning would've been nice
Yup, incredibly annoying tbh
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.
Is this fixed?
I don't think so because I just had the same issue yesterday
Why were they built in this way? Very annoying😡😡😡
I'm working on this. No more overriding files.
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.
Im using nextjs 13 with the app router and when I init shadcn it breaks some of my styles.
ShadCN is basically overriding your previous talwind configurations and I need to configurate tailwind again.
The
tailwind.config.js
should be updated, not rewritten