<script>
import { jsPDF } from 'jspdf'
...
export default {
methods: {
getPdf() {
const printDoc = new jsPDF('p', 'in', 'letter')
console.log('printDoc', printDoc)
// There is no method fromHTML in what is printed,so when I use printDoc
// the console reports error: fromHTML is not a function
},
},
}
</script>