Closed rmkanda closed 1 year ago
Hi, Solved for me by adding encoding parameter into the readFileSync call like this
const readFile = filePath => {
return fs.readFileSync(path.resolve(__dirname,filePath),"utf-8")
}
I had the same error and solved it by explicitly converting the input parameters to string:
const transformXml = require('xslt-processor');
transform = transformXml.xsltProcess(
transformXml.xmlParse(String(xml)),
transformXml.xmlParse(String(xsl))
);
I'll considered this as solved for now. Feel free to reopen if any modification is required.
TypeError: e.match is not a function
Code:
Error: