title: React, Typescript - Cannot find module ... or its corresponding type declarations
body: <p>I created a new project using create-react-app and yarn 2 in vs code. The editor throws errors while importing every installed library like this:</p>
  <blockquote>
  <p>Cannot find module 'react' or its corresponding type declarations.</p>
  </blockquote>
  <p>The project compiles and runs successfully but the errors are still there. When I change the file's extension to <em>.js</em> and <em>.jsx</em> from.<em>ts</em> and <em>.tsx</em>, the errors disappear. How should I solve this problem for typescript files?</p>