Hello
I am developing a function to save html as pdf using jspdf in react.
but I got a following error message.

My code :
const container = document.getElementById('container');
const doc = new jsPDF("p", "mm", "a4");
doc.html(container, {
callback: (doc) => doc.save(),
});