Unable to import svg files in typescript : <p>In <code>typescript(*.tsx)</code> files I cannot import svg file with this statement:</p>

<pre><code>import logo from './logo.svg';
</code></pre>

<p>Transpiler says:<code>[ts] cannot find module './logo.svg'.</code>
My svg file is just <code>&lt;svg&gt;...&lt;/svg&gt;</code>.</p>

<p>But in <code>.js</code> file I'm able to import it without any issues with exact the same import statement. I suppose it has something to do with type of svg file which must be set somehow for ts transpiler. </p>

<p>Could you please share how to make this work in ts files?</p>
