Calling codepainter inside a node process using childProcess.exec fails because invalid glob
Closed this issue · 0 comments
royriojas commented
When calling codepainter from inside a node app using child_process I got this weird error
node_modules/codepainter/node_modules/glob/node_modules/minimatch/minimatch.js:139
>> throw new TypeError("glob pattern string required")
>> ^
>> TypeError: glob pattern string required
this could be prevented by adding
args.globs = args.globs.filter(function (ele) { return typeof ele === 'string' });
To the xform function.
I know I can use the module directly in node instead of using the cli command, but just letting you know of the existence of this issue.