-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Description
Heya Hayden π
When running pnpx ai-elements@latest in an existing project with a non-default aliases.components key set in components.json, AI Elements won't respect the key, using incorrect import paths when resolving to Shadcn components it depends on.
It appears to consistently output import paths in the form of @workspace/components, correctly updating @workspace, but not the rest of the path.
This can be best reproduced using the Next Monorepo Shadcn template.
Steps to reproduce
pnpm dlx shadcn@latest init- Select "Next.js (Monorepo)"
cd my-app/packages/uipnpx ai-elements@latest- View the incorrect import path used for
Buttoninpackages/ui/src/components/ai-elements/artifact.tsx
haydenbleasel
Metadata
Metadata
Assignees
Labels
No labels