sango-tech / vue3-simple-html2pdf

Export/Download Vue3 using html2pdf.js. Easy to custom any pdf style because it is exported from real HTML.
MIT License
22 stars 8 forks source link

Doesn't work with Vite #3

Open mstrade opened 2 years ago

mstrade commented 2 years ago

Image 2021-11-12 at 12 19 52 PM

matheusgomes062 commented 2 years ago

Getting an error with vite also! image

Could not make it work using vitesse template :(

abinhho commented 2 years ago

Sorry I have not tested on Vite yet. Can you give a sample code that help me easy to debug?

abinhho commented 2 years ago

Please try with version 0.0.7

maulanayusupp commented 1 year ago

Just tried on vite it's not working. ` Could not resolve "vue3-simple-html2pdf/src/vue3-simple-html2pdf"

node_modules/vue3-simple-html2pdf/src/index.js:1:31:
  1 │ ...rom 'vue3-simple-html2pdf/src/v...
    ╵        ~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "vue3-simple-html2pdf/src/vue3-simple-html2pdf" as external to exclude it from the bundle, which will remove this error. `

abinhho commented 1 year ago

@maulanayusupp Could you please make a PR?

vheins commented 1 year ago

any update?

WingSMC commented 1 year ago

I supposedly fixed it. Please review & merge.

7