

I have only imported and used the xml2json package in a +page.js file, and I'm returning the converted JSON as data which I'm using in page.svelte.Īt node_modules/bindings/bindings.js (xml2json.js?v=96eb7702:506:14)Īt _require2 (chunk-OROXOI2D.js?v=96eb7702:16:50)Īt node_modules/node-expat/lib/node-expat.js (xml2json.js?v=96eb7702:642:17)Īt node_modules/xml2json/lib/xml2json.js (xml2json.js?v=96eb7702:8266:17)Īt node_modules/xml2json/lib/index.js (xml2json.js?v=96eb7702:8501:22)Īt node_modules/xml2json/index.js (xml2json.js?v=96eb7702:8509:22)Īt _require2 (chunk-OROXOI2D. The first is the XML string to convert to JSON, and the second is an optional object. From what I can tell this relates to 'process' being exposed to the browser. The xml2json() function has two parameters. In my log I have a ReferenceError: process is not defined. My front-end flashes the correct content briefly then goes to 500 Internal error. However, I have an error related to the package. I now have my xml data coming back, I can convert to JSON and access in my. Hi, i'm wondering if I can ask another question.
