Filesaver.js: EXCEPTION: TypeError: saveAs is not a function

Created on 16 Aug 2016  路  4Comments  路  Source: eligrey/FileSaver.js

Hi,
When I try on this with Angle 2, this message appears:

EXCEPTION: TypeError: filesaver.saveAs is not a function

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')

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ezequiel88 picture ezequiel88  路  4Comments

HeroSony picture HeroSony  路  5Comments

binishprabhakar picture binishprabhakar  路  6Comments

meenucoditas picture meenucoditas  路  6Comments

danielbronder picture danielbronder  路  6Comments