How to resolve "Corresponding file not included in tsconfig.json" error in WebStorm?
<p>I am using highland.js and have installed it with its type definition:</p>

<pre><code>jq .dependencies package.json | grep highland
  "@types/highland": "https://registry.npmjs.org/@types/highland/-/highland-1.14.30.tgz",
  "highland": "^2.9.0",
</code></pre>

<p>I am using PhpStorm (which uses the WebStorm component for TypeScript).</p>

<p>When I typehint for:</p>

<pre><code>Highland.Stream&lt;any&gt;
</code></pre>

<p>PhpStorm complains about the Stream:</p>

<pre><code>Corresponding file not included in tsconfig.json
</code></pre>

<p><img src="https://i.stack.imgur.com/xw4uM.png" alt="Screenshot of the error"></p>

<p>Yet the go to declaration works and it jumps to <code>node_modules/@types/highland/index.d.ts:367</code>:</p>

<pre><code>interface Stream&lt;R&gt; extends NodeJS.EventEmitter { ... }
</code></pre>

<p>I can compile the code fine with <code>tsc</code> without errors and it's working as expected. What is PhpStorm's / WebStorm's problem?</p>

<pre><code>$ jq . tsconfig.json
{
  "compilerOptions": {
    "module": "commonjs",
    "lib": [
      "es2016",
      "dom"
    ],
    "target": "es6",
    "noImplicitAny": true,
    "sourceMap": true,
    "outDir": "dist",
    "strictNullChecks": true,
    "skipLibCheck": true,
    "types": [
      "node",
      "mocha",
      "chai",
      "sinon"
    ]
  },
  "exclude": [
    "node_modules",
    "src/typings-custom/main.d.ts"
  ]
}
</code></pre>

<p>I tried adding highland to <code>types</code> to no avail, and I have no idea what the error is telling me.</p>