xmlbuilder2
xmlbuilder2 copied to clipboard
Error thrown from xmlbuilder2
Describe the bug I have created a package html-to-docx. The package's main dependency is xmlbuilder2, but one of its users reported an issue while trying to use it on frontend(react).
Additional context Issue mentioned in the project repo.
Can you please make a test case to reproduce this?
@oozcitak Crossposting the issue reported on html-to-docx repo.
When tried to use it in the browser in my React application, I get the following error
Uncaught (in promise) TypeError: Cannot call a class as a function
at e.exports (classCallCheck.js:3)
at new r (NodeImpl.ts:93)
at r.<anonymous> (createSuper.js:14)
at new r (DocumentImpl.ts:69)
at Object.t.create_document (CreateAlgorithm.ts:61)
at new r (WindowImpl.ts:28)
at Function.value (WindowImpl.ts:41)
at Object.t.create_window (CreateAlgorithm.ts:47)
at e.get (DOMImpl.ts:68)
at new e (DOMImplementationImpl.ts:27)