Open ritschwumm opened 4 years ago
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()
UInt8Array
fs.readFile()
as a workaround, global.Blob = function() {}; seems to help
global.Blob = function() {};
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
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 fromfs.readFile()
as a workaround,
global.Blob = function() {};
seems to help