Skip to content

ai-elements not installing in existing components directory #44

@sambroe

Description

@sambroe

Description

My shad components install in ./app/components/ui. When I install ai-elements, they are placed in ./components/ai-elements, rather than .app/components/ai-elements.

I've tried using both install methods.

This is my components.json (~ resolves to ./app):

{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "new-york",
  "rsc": false,
  "tsx": true,
  "tailwind": {
    "config": "",
    "css": "app/app.css",
    "baseColor": "neutral",
    "cssVariables": true,
    "prefix": ""
  },
  "aliases": {
    "components": "~/components",
    "utils": "~/lib/utils",
    "ui": "~/components/ui",
    "lib": "~/lib",
    "hooks": "~/hooks"
  },
  "iconLibrary": "lucide"
}
Image

AI SDK Version

  • "ai": "^5.0.15",
  • "@ai-sdk/openai": "^2.0.15",
  • "@ai-sdk/react": "^2.0.15",

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions