title: Typescript: Cannot use import statement outside a module
body: <p>I have a .ts file in node js (latest version of node.js for 07.10.19) app with importing node-module without default export. I use this construction: <code>import { Class } from 'abc';</code> When i run the code, i have this error: <code>Cannot use import statement outside a module</code>.</p>
  
  <p>In the network i see many solutions for this problem (for .js), but it not helps to me, maybe because i have typescript file. Here's my code:</p>
  
  <pre><code>import { Class } from 'abc';
  module.exports = { ...
      execute(a : Class ,args : Array&lt;string&gt;){ ...
  </code></pre>
  
  <p>Here's my tsconfig.json:</p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "es6",
      "module": "commonjs",
  
      "strict": true
    }
  }
  </code></pre>