DevelopingMagic/pdfassembler

ReferenceError: Blob is not defined

ritschwumm opened this issue · 2 comments

with node 12.3, this line https://github.com/DevelopingMagic/pdfassembler/blob/master/src/pdfassembler.ts#L43 fails with the above error when fed an UInt8Array coming from fs.readFile()

as a workaround, global.Blob = function() {}; seems to help

with a similar hack for File, this library works quite well on node...

Is there a better solution for this? I am getting the same error