jszip icon indicating copy to clipboard operation
jszip copied to clipboard

ZipObject.async(type) not work in browser

Open jeremyjone opened this issue 3 years ago • 2 comments

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?

jeremyjone avatar Jun 29 '21 04:06 jeremyjone

I had the same problem with version number 3.10.1

gouxiwen avatar Dec 06 '22 08:12 gouxiwen

I am facing same issue on 3.10.1, have you found solution or workaround for this?

Talar1997 avatar Feb 20 '23 16:02 Talar1997