I need help.I am trying to decompress a zip file with angular using extract-zip.
but I got the following error :
./node_modules/extract-zip/index.js:9:4-17 - Error: Module not found: Error: Can't resolve 'fs' in 'D:\TONWEYA\ig-recovery\node_modules\extract-zip '
./node_modules/fd-slicer/index.js:1:9-22 - Error: Module not found: Error: Can't resolve 'fs' in 'D:\TONWEYA\ig-recovery\node_modules\fd-slicer'
./node_modules/yauzl/index.js:1:9-22 - Error: Module not found: Error: Can't resolve 'fs' in 'D:\TONWEYA\ig-recovery\node_modules\yauzl'
./node_modules/zlib/lib/zlib.js:1:0-43 - Error: Module not found: Error: Can't resolve './zlib_bindings' in 'D:\TONWEYA\ig-recovery\node_modules\zl ib\lib'
this is my code :
import extractZip from 'extract-zip';
async onFileSelected(event: any): Promise<void> {
this.fichier = event.target.files[0];
extractZip("D:\\TONWEYA\\unzip\\demo.zip", {dir: "D:\\TONWEYA\\unzip"});
}
I am really wait for your help. I'm using angular 13.