Why am i getting 'cannot find name' in typescript?

This error means that TypeScript can't find a variable, function, or type that you're referencing. This often happens if you forgot to import something or made a typo.

Example:

  console.log(myVar);
  
Solution:

  let myVar = "Hello, TypeScript";
  console.log(myVar);
  

Beginner's Guide to TypeScript