Inconsistent "Cannot find name 'x'" Typescript errors in VS Code
<p>My app compiles (transpiles) just fine, but Visual Studio Code is still showing a lot of errors:</p>

<p><a href="https://i.stack.imgur.com/KmAkW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KmAkW.png" alt="enter image description here"></a></p>

<p>In some of these cases (e.g. <code>angular</code> and <code>ionic</code>), the problem is a global variable/namespace that is added via our inclusion of Angular/Ionic is not recognized.  Most of the errors are of the form "Cannot find name 'angular/ionic/ng" (etc).</p>

<p>To make things even stranger, I've noticed that the file that is initially open when I load VS Code doesn't have any errors at all.  The red underlined errors are in the <em>other</em> files in other tabs/editors.</p>

<p>What's going on?  How do I get VS Code to consistently acknowledge that these globals/namespaces do, in fact, exist?</p>