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
I tried creating a validator function using the XMLValidator.validate method, however I'm getting a circular dependency warning when I try to run the code.
Code
const{ XMLValidator }=require('fast-xml-parser');constisValidXML=(xml)=>{constvalidXML=XMLValidator.validate(xml);if(validXML.err){thrownewError('Invalid XML data',validXML);}returnvalidXML;};
Output
(node:7131) Warning: Accessing non-existent property 'splice' of module exports inside circular dependency
at emitCircularRequireWarning (node:internal/modules/cjs/loader:755:11)
at Object.get (node:internal/modules/cjs/loader:771:5)
at Object.<anonymous> (/validate-xml.js:1:26)
at Module._compile (node:internal/modules/cjs/loader:1165:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
at Module.load (node:internal/modules/cjs/loader:1043:32)
at Function.Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1067:19)
at require (node:internal/modules/cjs/helpers:103:18)
expected data
Code should run without errors
Would you like to work on this issue?
Yes
No
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
The text was updated successfully, but these errors were encountered:
We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.
Description
Input
I tried creating a validator function using the XMLValidator.validate method, however I'm getting a circular dependency warning when I try to run the code.
Code
Output
expected data
Code should run without errors
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
The text was updated successfully, but these errors were encountered: