jszip
jszip copied to clipboard
When we are declaring variable jSZip in js, not able to read the constructor.
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.