deltazero-cz / node-xsd-validator

Validating XMLs against XSD schema
ISC License
0 stars 1 forks source link

Module not found: Can't resolve 'fs' #3

Open m-salaudeen opened 4 months ago

m-salaudeen commented 4 months ago

Hello,

I installed this package and attached is an image of the error I get when ever I start up the app:

Screenshot 2024-02-15 at 13 14 50

Here is my implementation

`import validateSchema from "xsd-validator";

const handleButtonChange = () => { console.log(validateSchema("<xml...", "<xs:schema...")); }`

I don't even have to click the button before it throw error

I am using this in a NextJS app version 14 Typescript

Also I have installed libxmljs but still the same issue

deltazero-cz commented 2 weeks ago

What environment are you using? Module fs should be a native in node, https://nodejs.org/api/fs.html