Hi,
When I try on this with Angle 2, this message appears:
EXCEPTION: TypeError: filesaver.saveAs is not a function
This belongs more to stackoverflow since this is not about FileSaver
Make sure you include FileSaver.js in your site in the correct way using either require/amd/import or the global
if it's on the global (window) it's just window.saveAs(blob, 'filename')
Hi,
I had the same problem. I just made sure that Filesaver.js is in node_modules/FileSaver/filesaver.js.
I suggest you install filesaver package again.
install package it doesn't matter with your errors!
Are u sure that this lib in your (global) scope (injected)?
and please close ticket if u fixed your problem!
Fix: npm install [email protected] --save
Because FileSaver.saveAs method is not supported in newer version 1.3.4.
Most helpful comment
This belongs more to stackoverflow since this is not about FileSaver
Make sure you include FileSaver.js in your site in the correct way using either require/amd/import or the global
if it's on the global (window) it's just
window.saveAs(blob, 'filename')