privateOmega / html-to-docx

HTML to DOCX converter
MIT License
375 stars 141 forks source link

Not working in node18 #182

Closed maheshemvigo closed 1 year ago

maheshemvigo commented 1 year ago

In node18, the return file is a blob, not a buffer format. My error message is given below,

"TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Blob".

Thank you

privateOmega commented 1 year ago

@maheshemvigo Seems like node18 came out with blob in global space, I will refactor the code for node18 to give buffer and not blob.

privateOmega commented 1 year ago

@maheshemvigo Please check the latest release and see if it works for you. I am closing the issue for now, but feel free to reopen it if issue persist.