title: error TS2688: Cannot find type definition file for 'dist'
body: <p>For some reason I'm getting this error <code>error TS2688: Cannot find type definition file for 'dist'</code>, despite <code>dist</code> being a folder. Does anyone know why this is happening and what I can do to fix this?</p>
  <p>tsconfig:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;compilerOptions&quot;: {
          &quot;target&quot;: &quot;es5&quot; ,
          &quot;lib&quot;: [
              &quot;es2019&quot;,
              &quot;dom&quot;
          ],
          &quot;allowJs&quot;: false,
          &quot;declaration&quot;: true,
          &quot;sourceMap&quot;: true,
          &quot;outDir&quot;: &quot;./dist/&quot;,
          &quot;strict&quot;: true,
          &quot;noImplicitAny&quot;: true,
          &quot;strictNullChecks&quot;: true,
          &quot;strictBindCallApply&quot;: true,
          &quot;strictPropertyInitialization&quot;: true,
          &quot;noImplicitThis&quot;: true,
          &quot;alwaysStrict&quot;: true,
  
          &quot;noUnusedLocals&quot;: false,
          &quot;noUnusedParameters&quot;: false,
          &quot;noImplicitReturns&quot;: true ,
          &quot;noFallthroughCasesInSwitch&quot;: true,
          &quot;typeRoots&quot;: [
              &quot;./&quot;
          ],
          &quot;allowSyntheticDefaultImports&quot;: true,
          &quot;esModuleInterop&quot;: true ,
          &quot;skipLibCheck&quot;: true,
          &quot;forceConsistentCasingInFileNames&quot;: true
      },
      &quot;compileOnSave&quot;: true,
      &quot;exclude&quot;: [&quot;node_modules/&quot;],
      &quot;include&quot;: [&quot;main.ts&quot;]
  }
  </code></pre>
  <p>This is my folder structure:</p>
  <p><a href="https://i.stack.imgur.com/RXj5F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RXj5F.png" alt="folder structure" /></a></p>