Thank you for your work on getting version 4 up, however I have an issue with the packer. In my NodeJs server file I have put in the code from the version 4 documentation for the blob packer.
const packer = new docx.Packer();
packer.toBlob(doc).then((blob) => {
// saveAs from FileSaver will download the file
saveAs(blob, "example.docx");
});
However I am receiving the following message. Is this due to Node not supporting blobs or something of that effect? My version of Node is 9.4.0. Thank you for any assistance!
(node:20663) UnhandledPromiseRejectionWarning: Error: blob is not supported by this platform
at Object.exports.checkSupport (/home/kharmony/Development/un_ems/node_modules/docx/build/index.js:449:15)
at JSZip.generateInternalStream (/home/kharmony/Development/un_ems/node_modules/docx/build/index.js:33921:17)
at JSZip.generateAsync (/home/kharmony/Development/un_ems/node_modules/docx/build/index.js:33949:21)
at Packer.<anonymous> (/home/kharmony/Development/un_ems/node_modules/docx/build/index.js:33391:40)
at Generator.next (<anonymous>)
at fulfilled (/home/kharmony/Development/un_ems/node_modules/docx/build/index.js:33362:58)
at propagateAslWrapper (/home/kharmony/Development/un_ems/node_modules/async-listener/index.js:478:23)
at /home/kharmony/Development/un_ems/node_modules/async-listener/glue.js:188:31
at /home/kharmony/Development/un_ems/node_modules/async-listener/index.js:515:70
at /home/kharmony/Development/un_ems/node_modules/async-listener/glue.js:188:31
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
Thank you for your work on getting version 4 up, however I have an issue with the packer. In my NodeJs server file I have put in the code from the version 4 documentation for the blob packer.
However I am receiving the following message. Is this due to Node not supporting blobs or something of that effect? My version of Node is
9.4.0. Thank you for any assistance!