I'm trying the example from npmjs (the npmjs is installed) documentation but receiving this error in the browser.
SyntaxError: Unexpected token '{'. import call expects exactly one argument.
I have checked similar tickets here patiently however, no solution. Does anyone have an idea what could be a reason for this? Removing curly braces does not work.
import { jsPDF } from "jspdf";
const doc = new jsPDF();
doc.text("Hello world!", 10, 10);
doc.save("a4.pdf");