title: Cannot find type definition file for 'bson'. The file is in the program because: Entry point for implicit type library 'bson'
body: <p>I have setup new Typescript/React project, getting this error message in the tsconfig.json file</p>
  <p>&quot;Cannot find type definition file for 'bson'.
  The file is in the program because:
  Entry point for implicit type library 'bson'&quot;</p>
  <p>any ideas.</p>
  <p>here is my tsconfig.json</p>
  <pre class="lang-json prettyprint-override"><code>
  {
    &quot;compilerOptions&quot;: {
      &quot;target&quot;: &quot;es5&quot;,
      &quot;lib&quot;: [&quot;dom&quot;, &quot;dom.iterable&quot;, &quot;esnext&quot;],
      &quot;allowJs&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;strict&quot;: false,
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;noEmit&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;module&quot;: &quot;esnext&quot;,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;resolveJsonModule&quot;: true,
      &quot;isolatedModules&quot;: true,
      &quot;jsx&quot;: &quot;preserve&quot;
    },
    &quot;include&quot;: [&quot;next-env.d.ts&quot;, &quot;**/*.ts&quot;, &quot;**/*.tsx&quot;],
    &quot;exclude&quot;: [&quot;node_modules&quot;]
  }
  </code></pre>