Meet the error families

Each TypeScript error code maps to a specific compiler stage. The ts1xxx family surfaces parser and scanner failures, ts2xxx captures checker-time type inference and assignability issues, ts4xxxโ€“ts5xxx point to emitter and declaration generation problems, and ts6xxx+ flag module resolution, path mapping, and configuration mismatches.

Pick a path

Use the sidebar to explore a category that matches your situation, then click a specific code to get possible causes, real-world examples, and quick fixes so you can keep shipping.

What you will learn

Think of it as a guided tour through the compilerโ€™s brain: each category opens up to a list of codes with clear explanations, common pitfalls, and why the compiler chose that wording.

Fix fast, stay in flow

If you spot the error you are fighting, jump in to see what usually triggers it, how to reproduce it safely, and the fastest ways to fix it before your flow is interrupted.