title: TypeScript error "TS2354: This syntax requires an imported helper but module 'tslib' cannot be found"
body: <p>I have reduced a problem with TypeScript to the following example. When trying to run tsc, I get the following error message but <code>tslib</code> should be available.</p>
  
  <p><a href="https://codesandbox.io/s/quizzical-mclean-n9vvi?fontsize=14&amp;hidenavigation=1&amp;theme=dark" rel="nofollow noreferrer">https://codesandbox.io/s/quizzical-mclean-n9vvi?fontsize=14&amp;hidenavigation=1&amp;theme=dark</a></p>
  
  <pre class="lang-sh prettyprint-override"><code>$ tsc --noEmit --project ./tsconfig.json
  
  index.js:3:8 - error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
  
  3 const {ArgumentParser} = require('argparse');
           ~~~~~~~~~~~~~~
  Found 1 error.
  </code></pre>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>{
    "name": "test",
    "version": "1.0.0",
    "description": "",
    "main": "index.ts",
    "scripts": {
      "test": "tsc --noEmit --project ./tsconfig.json"
    },
    "author": "",
    "license": "ISC",
    "devDependencies": {
      "@types/argparse": "1.0.38",
      "argparse": "1.0.10",
      "tslib": "1.11.1",
      "typescript": "3.8.3"
    }
  }
  </code></pre>
  
  <p><strong>tsconfig.json</strong></p>
  
  <pre><code>{
    "compilerOptions": {
      "checkJs": true,
      "allowJs": true,
      "moduleResolution": "node",
      "target": "es2018",
      "module": "commonjs",
      "importHelpers": true,
      "lib": [
        "es2018"
      ]
    },
    "include": [
      "*.js"
    ],
    "exclude": [
      "node_modules"
    ]
  }
  </code></pre>
  
  <p><strong>index.js</strong></p>
  
  <pre><code>'use strict';
  
  const {ArgumentParser} = require('argparse');
  </code></pre>