Typescript compiler "cannot find module" when using Webpack require for CSS/image assets : <p>I am writing <strong>vanilla Javascript</strong> but using the Typescript compiler's <code>checkJs</code> option to do type checking in VSCode.  I have Webpack set up to load various asset types (CSS, images, etc), which works fine for builds, but Code is treating these statements as an error.  For example, in this code</p>

<pre><code>require("bootstrap");
require("bootstrap/dist/css/bootstrap.css");
var img = require("../img/image.png");
</code></pre>

<p>the first line is fine but the next two both show an error under the (string) argument to <code>require()</code>, with the tooltip "Cannot find module (name)".</p>

<p>I have installed <code>@types/webpack</code> and <code>@types/webpack-env</code>, which fixed <code>resolve()</code> and <code>resolve.context()</code>.  Am I missing another typings package or is this an issue I need to take up on <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/" rel="noreferrer">the DT issue tracker</a>?</p>
