jszip icon indicating copy to clipboard operation
jszip copied to clipboard

When we are declaring variable jSZip in js, not able to read the constructor.

Open EKothari opened this issue 3 years ago • 0 comments

Hi all,

import JSZip from '@salesforce/resourceUrl/jsZip'; let zip1 = new JSZip(); zip1.file("Hello.txt", "testx\n"); zip1.generateAsync({type:"blob"}) .then(function(content) { // see FileSaver.js saveAs(content, "example.zip"); });

Just FYI - We are using this library in salesforce Lightning web component.

This is very critical for us. We need urgent assistance for the same. If anyone has any idea related to this please comment on the issue we will able to solve the issue asap.

Thanks in advance.

EKothari avatar Jul 06 '22 06:07 EKothari