0👍
The problem is the package itself. If you go to /node_modules/vue3-simple-html2pdf/src/index.js
you will see this line:
import Vue3SimpleHtml2pdf from 'vue3-simple-html2pdf/src/vue3-simple-html2pdf'
add a .vue to the end.
import Vue3SimpleHtml2pdf from 'vue3-simple-html2pdf/src/vue3-simple-html2pdf.vue'
This is problematic though (if you update or download it onto a different device…). You should ask the package creator to do it.
- [Vuejs]-Using Vue.js I am getting strange behavior in the two methods tied to click events on two buttons, Save and Delete
- [Vuejs]-Importing a Vue component fails with error "the requested module does not provide an export named 'default'
Source:stackexchange.com