vue3-simple-html2pdf icon indicating copy to clipboard operation
vue3-simple-html2pdf copied to clipboard

Can't install

Open mstrade opened this issue 3 years ago • 2 comments

node_modules/vue3-simple-html2pdf/src/index.js:1:31: error: Could not resolve "vue3-simple-html2pdf/src/vue3-simple-html2pdf" (mark it as external to exclude it from the bundle) 1 │ import Vue3SimpleHtml2pdf from 'vue3-simple-html2pdf/src/vue3-simple-html2pdf' ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

mstrade avatar Nov 12 '21 10:11 mstrade

Please give more details. Or see this https://stackoverflow.com/questions/60502164/rollup-js-exclude-module-from-bundle

abinhho avatar Aug 26 '22 08:08 abinhho

I also get a similar error: `✘ [ERROR] Could not resolve "vue3-simple-html2pdf/src/vue3-simple-html2pdf"

node_modules/vue3-simple-html2pdf/src/index.js:1:31:
  1 │ import Vue3SimpleHtml2pdf from 'vue3-simple-html2pdf/src/vue3-simple-html2pdf'
    ╵                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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.

13:59:15 [vite] error while updating dependencies: Error: Build failed with 1 error: node_modules/vue3-simple-html2pdf/src/index.js:1:31: ERROR: Could not resolve "vue3-simple-html2pdf/src/vue3-simple-html2pdf"`

MarkCondello avatar Jan 11 '23 03:01 MarkCondello