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?
See Question&Answers more detail:os