Closed harveylee closed 2 years ago
I think this could be related to the fact that fflate
searches for the local file headers in streaming mode, but this issue should be avoidable with some logic rework.
I am also getting invalid distance
when trying to unzip certain zip files. I didn't notice this during development but after building/bundling it started happening. Any suggestions how I could fix this? Thanks.
My issue ended up being minification in NextJS that I fixed by disabling swcMinify.
Fixed the SWC minification problems at some point, don't remember when but SWC minification is not an issue anymore.
Great! Cause I'd forgot about that issue and started using swcMinify
again anyway. :-)
How to reproduce
The problem
Error: invalid distance
when unzipping a zip file created using AsyncZipDeflate which contains another zip file.It seems that when unzipping the outer zip file, it also tries to unzip the inner zip file, which is surprising behaviour?
double.zip truck.jpg truck.zip