Description
Describe the bug
In ts it works well but in js it does not work
I want my files to go inside like this
`
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": false,
"tailwind": {
"config": "",
"css": "src/shared/components/lib/shadcn/styles/sahdcn.scss",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "src/shared/components/lib/shadcn/components",
"utils": "src/shared/components/lib/shadcn/lib/utils",
"ui": "src/shared/components/lib/shadcn/components/ui",
"lib": "src/shared/components/lib/shadcn/lib",
"hooks": "src/shared/components/lib/shadcn/hooks"
},
"iconLibrary": "lucide"
}
`
but it does not work
From v4 tailwind use @use instead @import
Is there any way to insall shadcn in this project?
[https://github.com/ravenkim/ss-react-boilerplate-js]
Affected component/components
init
How to reproduce
- clone
- yarn
- yarn dev
- npx shadcn@latest init
Codesandbox/StackBlitz link
https://github.com/ravenkim/ss-react-boilerplate-js
Logs
npx shadcn@latest init
✔ Preflight checks.
✔ Verifying framework. Found Vite.
✖ Validating Tailwind CSS config. Found v4.
✔ Validating import alias.
No Tailwind CSS configuration found at /home/raven/job/portfolio/ss-react-boilerplate-js.
It is likely you do not have Tailwind CSS installed or have an invalid configuration.
Install Tailwind CSS then try again.
Visit https://tailwindcss.com/docs/guides/vite to get started.
System Info
node -v
v22.14.0
yarn -v
4.7.0
"tailwindcss": "^4.0.15",
"vite": "^6.2.0"
Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues