jszip
jszip copied to clipboard
ZipObject.async(type) not work in browser
I have a piece of code:
var jszip = new JSZip();
jszip.loadAsync(excel).then(
zip => {
Object.keys(zip.files).forEach(filename => {
// ... check type
zip.files[filename].async(fileType).then(data => {
// can not execute here in browser
}
}
}
)
This code can execute in Vue project with node env, but not execute in browser.
In browser, zip.files[filename].async(fileType)
always Pending
... Where did I go wrong?
I had the same problem with version number 3.10.1
I am facing same issue on 3.10.1, have you found solution or workaround for this?