Category

TypeScript

Explore our curated collection of articles, insights, and stories about TypeScript.

10 Articles
Force tsc to Ignore node_modules: Fix TS Errors
TypeScript
7 min read·2026-09-05

Force tsc to Ignore node_modules: Fix TS Errors

Run tsc --noEmit on a project that compiles fine in the editor and the terminal lights up with type errors from inside node_modules. The fix is skipLibCheck, plus two

Read more
TypeScript 6.0 Migration: What Actually Breaks in Next.js/Supabase
TypeScript
11 min read·2026-08-29

TypeScript 6.0 Migration: What Actually Breaks in Next.js/Supabase

TypeScript 6.0 shipped in March 2026 with strict mode on by default and several legacy options removed. Here is what actually breaks migrating a real Next.js + Supabase codebase, in the order to fix it.

Read more
Fix tsconfig Paths Not Working in Next.js
TypeScript
7 min read·2026-08-14

Fix tsconfig Paths Not Working in Next.js

The @/* alias fails in four different places for four different reasons. A 60-second checklist, then a fix per resolver: Next.js build, TS server, Jest and ESLint.

Read more
TypeScript Getter Setter Errors: TS1056, TS1028, TS2378 Fix
TypeScript
8 min read·2026-06-23

TypeScript Getter Setter Errors: TS1056, TS1028, TS2378 Fix

TypeScript getter/setter errors come from ES target misconfiguration or type mismatches. Fix TS1056, TS1028, and TS2378 in minutes.

Read more
JSX.Element vs ReactNode vs ReactElement: TS2322 Fix
TypeScript
9 min read·2026-06-20

JSX.Element vs ReactNode vs ReactElement: TS2322 Fix

Fix TS2322 by understanding when ReactNode, JSX.Element, and ReactElement apply in React + TypeScript component typing.

Read more
Fix TS7016: Could Not Find Declaration File for Module
TypeScript
8 min read·2026-06-18

Fix TS7016: Could Not Find Declaration File for Module

TS7016 fires when you import an untyped JavaScript module under noImplicitAny. The right fix is usually `npm i -D @types/X` — but sometimes the package already ships types, and sometimes you need to write a one-line declaration.

Read more
Fix TS2305: Module Has No Exported Member in TypeScript
TypeScript
8 min read·2026-06-18

Fix TS2305: Module Has No Exported Member in TypeScript

TS2305 says the export you're importing doesn't exist under that name. The cause is almost always one of: a typo, default-vs-named confusion, a CJS/ESM interop mismatch, or @types drifting from the runtime package. Each has a precise fix.

Read more
TS2564: Why Constructor Methods Don't Count as Init
TypeScript
8 min read·2026-06-18

TS2564: Why Constructor Methods Don't Count as Init

TS2564 fires when a class field is typed but never guaranteed to be set. The fix depends on WHY it's unset: a default value, constructor assignment, the definite-assignment `!`, or an optional `?`. Picking the wrong one hides real bugs.

Read more
Fix "Property does not exist on Window" in TypeScript
TypeScript
9 min read·2026-06-17

Fix "Property does not exist on Window" in TypeScript

Learn how to safely extend the Window interface in TypeScript using declaration merging, type assertions, and bracket notation to avoid compile-time errors.

Read more
Migrate JavaScript to TypeScript with ts-migrate (2026)
TypeScript
13 min read·Jan 27, 2026

Migrate JavaScript to TypeScript with ts-migrate (2026)

Migrate a JS codebase to TypeScript file-by-file — no full rewrite required. The tsconfig settings, file order, and tricks for handling untyped packages along the way.

Read more