Everything was working just fine until I tried to add 87th element to the generated pdf file. At that point, it started throwing error Uncaught (in promise) Error: Invalid argument passed to jsPDF.scale.
My setup:
const doc = new jsPDF("landscape", "px");
const elements = document.getElementsByClassName("customChart");
await creatPdf({ doc, elements });
doc.save(`charts.pdf`);