Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Pariola-droid opened this issue Mar 18, 2024 · 2 comments

Comments

@Pariola-droid
Copy link

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

@micah-spieler
Copy link

I am also getting this error, it appears to be triggered by just trying to import HTMLtoDOCX into the React view.

@Sheepeer
Copy link

Sheepeer commented Dec 4, 2024

Same error with React+ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants