title: typescript: Cannot find module 'react'
body: <p>I don't understand why it can't find it.</p>
  
  <pre><code>$ cat tsconfig.json
  
  {
    "compilerOptions": {
      "sourceMap": true,
      "target": "es6",
      "jsx": "react",
      "types": [
        "lodash",
        "react",
        "react-dom"
      ]
    }
  }
  
  $ tree node_modules/@types
  
  node_modules/@types/
  ├── lodash
  │   ├── README.md
  │   ├── index.d.ts
  │   ├── package.json
  │   └── types-metadata.json
  ├── react
  │   ├── README.md
  │   ├── index.d.ts
  │   ├── package.json
  │   └── types-metadata.json
  └── react-dom
      ├── README.md
      ├── index.d.ts
      ├── package.json
      ├── server.d.ts
      └── types-metadata.json
  </code></pre>
  
  <p>Importing in a component file.</p>
  
  <pre><code>// src/components/component.tsx
  
  import * as React from "react";
  </code></pre>
  
  <p>What gives?</p>