Use Filesaver js with angular2
<p>i have checked all the post i can find on the use of Filesaver JS with angular, but i still could not wrap my head around a soution.
I added this  to the map section of my system.config.js</p>
<pre><code> 'filesaver': 'node_modules/filesaver/src/Filesaver.js'
</code></pre>
<p>I added this to the packages section of the system.config.js</p>
<pre><code>  'filesaver': {defaultExtension: 'js'}
</code></pre>
<p>I then imported it in my service.ts this way</p>
<pre><code>import { saveAs } from 'filesaver';
</code></pre>
<p>Yet i get this error.</p>
<p><a href="https://i.stack.imgur.com/hD3OJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hD3OJ.png" alt="enter image description here" /></a></p>
<p>Can someone help please?</p>