Composer kept answering with deprecated documentation

I am generating some UI code using the composer as like (added a space to Web to avoid tagging):

Generate a UI for [something] using shadcn @ Web Accordion - shadcn/ui

Despite giving the composer agent the exact place where to look for the documentation, it kept answering with deprecated code and instructions, like instead of answering with the new:

npx shadcn@latest add accordion

It kept answering with:

npx shadcn-ui@latest add accordion

which is deprecated.

Am I using the “@ Web” utility incorrectly?

1 Like

Hey, you can include this in your rules so it knows the correct command from the start. You’re using the @web function incorrectly, you just need to paste the link in the chat without @web. Then your link should be like this:

@https://ui.shadcn.com/docs/components/accordion

4 Likes

I also have had alot of problems recently with shadcn in cursor.

I added this to my .cursorrules files and it solved the problem

  • Always use “pnpm dlx shadcn@canary” instead of “npx shadcn-ui@latest”

But in general I think adding docs doesn’t work well at all. I even copy pasted the exact instructions on how to use shadcn + Vite and it didn’t follow them.