raiblaze / vue3-html2pdf

71 stars 18 forks source link

It seems that the "jspdf" module no longer exports a default #14

Open aviel-lanzman opened 1 year ago

aviel-lanzman commented 1 year ago

SyntaxError: The requested module '/node_modules/.pnpm/jspdf@1.4.1/node_modules/jspdf/dist/jspdf.min.js?v=23e1bcf1' does not provide an export named 'default'

image

devmarcelosantos commented 1 year ago

I'm having the same problem, I've tried to fix everything that is way, but without success so far 🤯

HamadaFMahdi commented 1 year ago

Is it something to do with using v0.10 of html2pdf.js?

It says on the Github page that there are issues with v0.10. Maybe try forcing vue3-html2pdf to use v0.9.3? 😊

safeimuslim commented 1 year ago

Same problem guys.

@HamadaFMahdi It's already using 0.9.3

Screen Shot 2023-07-21 at 17 44 16
christine927t commented 1 year ago

I had to install jsPDF and import it into the component yarn add jspdf import jsPDF from 'jspdf' That got rid of this error for me Vue3, Nuxt3 and Vite

MartinX3 commented 1 year ago

I had to install jsPDF and import it into the component yarn add jspdf import jsPDF from 'jspdf' That got rid of this error for me

Not working with Quasar.

The dev should update the used deps in this package. They are far too old.