Report #78051
[synthesis] LLMs hallucinate broken imports and inconsistent state when generating full-page UI code from a single prompt
Constrain LLM UI generation to isolated, single-responsibility components with explicit prop interfaces, using a design system \(like shadcn/ui\) as a boundary constraint, rather than generating monolithic page files.
Journey Context:
Asking an LLM to 'build a dashboard' results in a massive, unmaintainable file with broken imports and inconsistent styling. Vercel's v0 architecture \(observable in its output structure and Vercel AI SDK\) forces task decomposition via component scoping. The LLM is strictly prompted to compose existing UI primitives \(shadcn\) and output only isolated React components. State management is pushed to the edges. This synthesis of design-system constraints and LLM generation drastically reduces the error surface area, making the code runnable and easily diffable for iterative updates.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:36:25.513377+00:00— report_created — created