If global.scss file has comments in Sass form // then npx shadcn@latest add ... errors out.
Affected component/components
n/a
How to reproduce
Create a global.scss file if you don't have one
Make sure it has @tailwind directives (since this is how shadcn/ui determines the global file)
Add a Sass comment anywhere in file, e.g. // Testing comment
Run npx shadcn@latest add button
Get error (see Logs section)
Codesandbox/StackBlitz link
No response
Logs
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.
<css input>:69:22: Unknown word
Sometimes you'll get Unknown string depending on the order of things.
### System Info
```bash
Apple M1 Pro
Node v21.5.0
shadcn@2.1.2
Before submitting
[X] I've made research efforts and searched the documentation
Describe the bug
If global.scss file has comments in Sass form
//
thennpx shadcn@latest add ...
errors out.Affected component/components
n/a
How to reproduce
// Testing comment
npx shadcn@latest add button
Codesandbox/StackBlitz link
No response
Logs
Sometimes you'll get
Unknown string
depending on the order of things.Before submitting