79630817

Date: 2025-05-20 16:25:10
Score: 1.5
Natty:
Report link

When the type itself isn't suspicious, I've found this is almost always due to a mismatched dependency between 2 packages in your repository. In this case "other/package" has a different version of the "zod" dependency, and some detail of the internals of the typing is causing things to explode.

(This has happened to me enough now that I wanted to highlight the version mismatch as opposed to the normal recursive type issues).

Aligning the package versions usually fixes the issue, either manually or by using a tool like ncu. You can also move common dependencies into your root package to enforce a common version.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): When the
  • Low reputation (0.5):
Posted by: rjpower