thejoshwolfe / yauzl

yet another unzip library for node
MIT License
736 stars 80 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'prototype') #155

Closed MiguelG97 closed 7 months ago

MiguelG97 commented 7 months ago

I'm trying to unzip a zip file with this library and currently facing the following issue:

image

code:

import * as yauzl from "yauzl";
        yauzl.fromBuffer(
          Buffer.from(arraybuffer),
          (err, zipFile) => {
            console.log("my zipfile", zipFile);
          }
        );

by the way, I needed to install this package "util": "^0.10.0" for fixing an util issue with the yauzl library

MiguelG97 commented 7 months ago

my bad, from the backend is working fine. I guess I will stick to it