When calling AsyncZipDeflate's .push() function with an argument of type Node.js Uint8Array, it throws an error:
DataCloneError: Cannot transfer object of unsupported type.
at new DOMException (node:internal/per_context/domexception:66:5)
at Worker.postMessage (node:internal/worker:380:5)
at strm.push (file:///c:/dev/write-excel-file/node_modules/fflate/esm/index.mjs:961:11)
at AsyncZipDeflate.process (file:///c:/dev/write-excel-file/node_modules/fflate/esm/index.mjs:2016:16)
at ZipPassThrough.push (file:///c:/dev/write-excel-file/node_modules/fflate/esm/index.mjs:1948:14)
at AsyncZipDeflate.push (file:///c:/dev/write-excel-file/node_modules/fflate/esm/index.mjs:2024:39)
at start (file:///c:/dev/write-excel-file/source/zip/zipToStream.js:60:31)
at zipToStream (file:///c:/dev/write-excel-file/source/zip/zipToStream.js:101:3)
at file:///c:/dev/write-excel-file/source/export/writeXlsxFileNode.js:30:11
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Context.<anonymous> (file:///c:/dev/write-excel-file/test/writeXlsxFile.test.js:31:11)
When calling
AsyncZipDeflate's.push()function with an argument of type Node.jsUint8Array, it throws an error: