TypeError xxx is not a function Might Be A Missing Semi-Colon
When you get something like this:
Code
TypeError: "output.jpg" is not a function
The problem might be a missing semi-colon at the end of the line defining a variable.
For example, this:
Code
const output_tmp_path = "output.jpg"
when you need this
Code
const output_tmp_path = "output.jpg";