Closed
Description
I am attempting to pass file contents that I retrieved by calling the GitHub API into explainSync. When I was previously reading a local file using fs.readFileSync(<file_path>).toString()
and passing this into explainSync, it worked. However, now when I am doing the following, I get the error "There are no input files to process".
const sourceCode = Buffer.from(<fileContents>, 'base64').toString();
const documentationBlocks = explainSync({ source: sourceCode });
I verified that sourceCode
is a string that contains the contents of the file that I wish to parse the documentation of.
I have also tried passing in a plain string to explainSync without creating a Buffer and converting it to a string, and the plain string approach gives the same error.
Does anyone know of a solution to fix this?