Use Filesaver js with angular2
问题 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 'filesaver': 'node_modules/filesaver/src/Filesaver.js' I added this to the packages section of the system.config.js 'filesaver': {defaultExtension: 'js'} I then imported it in my service.ts this way import { saveAs } from 'filesaver'; Yet i get this error. Can someone help please? 回答1: Try the following npm