privateOmega / html-to-docx

HTML to DOCX converter
MIT License
373 stars 140 forks source link

Uncaught TypeError: Class extends value undefined is not a constructor or null #242

Open Pariola-droid opened 5 months ago

Pariola-droid commented 5 months ago

is there a reason why im getting this error

const htmlContent = editor.blocksToHTMLLossy(editor.document); //gotten from blocknote editor

async function handleDownloadDocx() { const fileBuffer = await HTMLtoDOCX(htmlContent, { table: { row: { cantSplit: true } }, footer: true, pageNumber: true, });

saveAs(fileBuffer, 'blocknote_document.docx');

}

Uncaught TypeError: Class extends value undefined is not a constructor or null at node_modules/html-to-docx/node_modules/xmlbuilder2/lib/builder/XMLBuilderCBImpl.js (html-to-docx.js?v=acbe9afc:20527:69) at require2 (chunk-AUZ3RYOM.js?v=acbe9afc:18:50) at node_modules/html-to-docx/node_modules/xmlbuilder2/lib/builder/index.js (html-to-docx.js?v=acbe9afc:21134:30) at require2 (chunk-AUZ3RYOM.js?v=acbe9afc:18:50) at node_modules/html-to-docx/node_modules/xmlbuilder2/lib/index.js (html-to-docx.js?v=acbe9afc:21147:21) at __require2 (chunk-AUZ3RYOM.js?v=acbe9afc:18:50) at html-to-docx.js?v=acbe9afc:29030:34