xmlbuilder2 icon indicating copy to clipboard operation
xmlbuilder2 copied to clipboard

Error thrown from xmlbuilder2

Open privateOmega opened this issue 5 years ago • 2 comments

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.

privateOmega avatar Oct 03 '20 06:10 privateOmega

Can you please make a test case to reproduce this?

oozcitak avatar Oct 03 '20 07:10 oozcitak

@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)

privateOmega avatar Oct 06 '20 05:10 privateOmega