title: Next.js is not recognizing '@types/react'
body: <p>When I try to run my Next.js app with <code>npm run dev</code> I get an error message saying that I don't have the required packages to run Next with Typescript:</p>
  <pre><code>Please install @types/react by running:
  
          npm install --save-dev @types/react
  
  If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files in your pages directory).
  </code></pre>
  <p>However, the module '@types/react' is installed. I tried running <code>npm install --save-dev @types/react</code> and got no error messages (just a bunch of warnings but I don't think they are the problem).</p>
  <p>How can I solve this and run the project?</p>