[bug]: npx shadcn init doesn't work when variables are in tailwind.config.js #4993
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
When running
npx shadcn@latest
in a project which has variables within the tailwind.config.js theme.extend, it fails to run with:Error replacing tree: The children of the old and new trees were expected to have the same count (8:21).
There's an issue with ts-morph.
E.g. with:
The ...defaultTheme is causing it to fail. I imagine the parser isn't accounting for variables inside the config, but I think it's quite a common setup
Affected component/components
N/A
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: