The example looks right. Your installed library says otherwise. Check the version and import before changing the whole project.
This original Context7 example deliberately tries a Zod 4 API against a default Zod 3 import, retrieves matching-major docs and verifies the correction locally. No Claude Code session or package upgrade is claimed. Get the original check kit; full guide/Markdown unlock with your email for access, not newsletter consent.
Get the part you came for.
- Actual wrong-API error and two verified inputs
- A Claude Code docs-check brief and source checklist
- Version gaps, source links and truthful setup limits
