Home > Enterprise >  jspdf doesn't work when loaded from a CDN
jspdf doesn't work when loaded from a CDN

Time:03-10

I am going to use package(enter image description here

So, how can I fix this error?

CodePudding user response:

You can use const { jsPDF } = window.jspdf; as shown in the official documentation if you want to use the CDN.

Even tho, I still do recommend the NPM package way (so does the package itself).

  • Related