title: Why does my TypeScript project fail only in VScode?
body: <p>I am maintaining an open-source project built with TypeScript. I didn't work on the project for a few weeks and I am back to fix a bug.</p>
  <p>But executing the project through VScode makes it fail all of the sudden. The mentioned errors are all legit, and I need to fix them. But I can't wrap my head around, why they fail just now and only in VScode, and not through the command-line as well.</p>
  <pre><code>...project/node_modules/ts-node/src/index.ts:587
      return new TSError(diagnosticText, diagnosticCodes);
             ^
  TSError: ⨯ Unable to compile TypeScript:
  ...project/src/bar.ts(361,27): error TS2532: Object is possibly 'undefined'.
  </code></pre>
  <p>As said, it is indeed an error, but how can I make it work again temporarily?</p>