wellworn
traps · 1 served

shadcn/ui

shadcn · latest 4.21.0 · MIT

You copy the component source into your repo, so upgrades are yours to make; since July 2026 new projects default to Base UI rather than Radix primitives.

symptom and fix
minor · >=4.0.0 · published · verified 2026-09-08
A component added today imports `cn` from a package while your older files define it locally.
shadcn moved `cn` out of `lib/utils` into its own `cn` package in September 2026. Run `pnpm dlx shadcn@latest migrate cn` once so old and new components import from the same place, instead of leaving two class-merge helpers in the tree.
evidence

Sorted by severity. Your agent sees the subset that matches the version you have installed: traps(library: "shadcn-ui", version: "4.21.0").