blob: d731b1e4f7cdaec345d3af21b9366a794f5b0e6e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# JavaScript / TypeScript Error Guide
## Frequent failure classes
- `TypeError` from undefined/null access
- async error swallowing in `Promise` chains
- `this` binding mismatches
- stale closure bugs in hooks or event handlers
- ESM / CJS import mismatches
## Minimum debugging flow
1. copy the full stack trace,
2. identify whether the failure is runtime, bundler, or type-level,
3. confirm the failing object/value before changing logic,
4. reproduce with the smallest possible input.
|