tsconfig paths (@/ alias) Playground

The workshop’s spec plate: tsconfig paths and baseUrl, tsc’s trace looking for the file step by step, TypeScript 6’s and 7’s errors, then Vite’s dev server…

Why it matters

"The editor and tsc are green, but the build or the tests scream Cannot find module" is the most common alias complaint. Its root: paths is for tsc only. Knowing how tsc matches a pattern and looks for files, plus how to tell the bundler, stops the guessing.

The key idea

paths is a map for tsc alone: a pattern, then file after file

Common mistakes

Try it in this playground