Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install #2

Open
mstrade opened this issue Nov 12, 2021 · 2 comments
Open

Can't install #2

mstrade opened this issue Nov 12, 2021 · 2 comments

Comments

@mstrade
Copy link

mstrade commented Nov 12, 2021

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'
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@abinhho
Copy link
Contributor

abinhho commented Aug 26, 2022

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

@MarkCondello
Copy link

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"`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants