Closed castrogarciajs closed 1 month ago
I am trying to add the Carousel component. And the CLI throws a configuration error I was investigating the problem it seems that the CLI npx shadcn-solid@latest init is not generating the correct schema.json properties.
Carousel
npx shadcn-solid@latest init
schema.json
{ "$schema": "https://shadcn-solid.com/schema.json", "tailwind": { "config": "tailwind.config.mjs", "css": "src/app.css", "baseColor": "neutral", "cssVariables": true, "prefix": "" }, "aliases": { "components": "@/components", "utils": "@/utils/cn" } }
tells me that the css property must be an object
css
{ "$schema": "https://shadcn-solid.com/schema.json", "tailwind": { "config": "tailwind.config.mjs", "css": { "path": "src/app.css" }, "color": "neutral", "cssVariables": true, "prefix": "" }, "alias": { "component": "@/components", "cn": "@/utils/cn" } }
No
pnpm dlx shadcn-solid@latest add carousel
■ Invalid configuration found in D:\dev\castrogarciajs/components.json.
No response
➜ castrogarciajs git:(master) pnpm dlx shadcn-solid@latest add carousel │ ■ Invalid configuration found in D:\dev\castrogarciajs/components.json.
[Package manager]: pnpm@9.1.1 [Browser]: Microsoft Edge [System]: Windows 10
Are you sure you on the latest version? Everything work fine to me
Describe the bug
Description
I am trying to add the
Carousel
component. And the CLI throws a configuration error I was investigating the problem it seems that the CLInpx shadcn-solid@latest init
is not generating the correctschema.json
properties.Setup components.json
Missing property
Linter
tells me that the
css
property must be an objectThis components.json works
Affected component/components
No
How to reproduce
npx shadcn-solid@latest init
pnpm dlx shadcn-solid@latest add carousel
■ Invalid configuration found in D:\dev\castrogarciajs/components.json.
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting