Using a new version of a library with a breaking change

I’m trying to use ChakraUI v3.x which has significant changes to the 2.x version. I’m constantly fighting the agent to get it to compose code correctly. Promoting “I am using chakraui 3.7” doesnt really work. Is there a way to solve this?

There are a couple ways to help the AI understand ChakraUI v3.x better

  1. Add the ChakraUI v3 docs using @Docs (Cursor – @Docs)
  • Open command palette
  • Select @Docs > Add new doc
  • Add the ChakraUI v3 documentation URL
  1. Create project rules (Cursor – Rules for AI)
  • Make a .cursor/rules directory
  • Add rules for ChakraUI v3 patterns and syntax
  • These will automatically apply to relevant files

These should help the agent generate more accurate code for the new version. The @Web feature will also automatically search for up-to-date ChakraUI docs when needed