parallax / jsPDF

Client-side JavaScript PDF generation for everyone.
https://parall.ax/products/jspdf
MIT License
29.44k stars 4.68k forks source link

Linking js files in normal browser does not work anymore #3778

Open b1tw0rker opened 2 months ago

b1tw0rker commented 2 months ago

While old version jspdf 1.3.2 running pretty well, in a normal browser the new stuff 2.5.x with this es node umd stuff does not work in a n normal browser linking as done the laste 20 years

Working: <script src=\"/virtualx/assets/lib/jspdf/jspdf.min.js\"> jspdf 1.3.2

NOT Working: <script src=\"/virtualx/assets/lib/jspdf/jspdf.umd.min.js\"> 2.5.2

NIce straight forward development to be usless....

ptbarnum4 commented 2 months ago

@b1tw0rker the CDN for 2.5.2 is missing (take a look at the 404 here) and the links are missing at cdnjs.

I would suggest just shifting back to 2.5.1

<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>