However, when I want to upgrade shadcn ui components with the command "npx shadcn@latest add -a -y -o", it cannot parse existing tailwind.config.ts and messes up the file.
See the attached screenshot.
Affected component/components
All
How to reproduce
Install all shadcn components with "npx shadcn@latest add -a -y -o"
Describe the bug
In my project, I use shadcn ui components and tremor components. I installed shadcn ui components first and then configured tremor components (https://tremor.so/docs/getting-started/installation/next)
Both of these component libraries require the tailwind.config.ts to be modified.
So, I have current tailwind.config.ts like this:
This file has no issues and works fine.
However, when I want to upgrade shadcn ui components with the command "npx shadcn@latest add -a -y -o", it cannot parse existing tailwind.config.ts and messes up the file.
See the attached screenshot.
Affected component/components
All
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting