title: Typescript error when using require - This expression is not callable. Type 'typeof import(...)' has no call signatures.ts(2349)
body: <p>I'm trying to run this script</p>
  <pre><code>const fetch = require('node-fetch');
  
  function test() {
    fetch('https://google.com')
      .then(res =&gt; res.text())
      .then(text =&gt; console.log(text))
  }
  
  test();
  </code></pre>
  <p>But i get this error</p>
  <blockquote>
  <p>This expression is not callable.
  Type 'typeof import(&quot;(...)/node_modules/node-fetch/@types/index&quot;)' has no call signatures.ts(2349)</p>
  </blockquote>
  <p>although it works when i use import</p>
  <pre><code>import fetch from 'node-fetch';
  </code></pre>
  <p>why and how to fix it?</p>