You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description
I have built a React app using https://create-react-app.dev/ and xmlbuilder2. Everything works fine when I start the app with yarn start in development mode. But when I build the app using yarn build I get this error when triggering an XML conversion:
classCallCheck.js:3 Uncaught (in promise) TypeError: Cannot call a class as a function
at e.exports (classCallCheck.js:3)
at new n (NodeImpl.ts:93)
at n.<anonymous> (createSuper.js:14)
at new n (DocumentImpl.ts:69)
at Object.t.create_document (CreateAlgorithm.ts:61)
at new n (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)
To Reproduce
Steps to reproduce the behavior just paste this code into your App.js after creating your app via npx create-react-app my-app
Bug Description
I have built a React app using https://create-react-app.dev/ and xmlbuilder2. Everything works fine when I start the app with yarn start in development mode. But when I build the app using yarn build I get this error when triggering an XML conversion:
To Reproduce
Steps to reproduce the behavior just paste this code into your App.js after creating your app via
npx create-react-app my-app
Expected behavior
This should work in development mode as well as in production mode.
Version:
node --version
v12.18.0
npm --version
6.14.5
[email protected]
Additional context
Not sure if it is a xmlbuilder2 bug.
The text was updated successfully, but these errors were encountered: