Open derhuebiii opened 4 years ago
import { saveAs } from 'file-saver/dist/FileSaver.js';
works for me with typescript/es6.
Note that you can also install/add @types/file-saver
;)
@derhuebiii I am also using a polymer 3.0 set up and this is how I resolved the issue
import { saveAs } from '../../../node_modules/file-saver/FileSaver';
var saveAs = saveAs
This worked for me
Hi,
I want to use FileSaver in a Polymer 3 project.
I think I tried all possible combinations of:
with { } and without etc...none of them seem to work.
Any suggestions? Thanks! :)