Typescript: "cannot find name" error

Example:

let example = someUndefinedVar;
This error indicates that a variable or function is being used without being defined or imported.

Solution:

import { someUndefinedVar } from "./someModule";

Beginner's Guide to TypeScript