I want to use jsPDF.html to convert html page to pdf, and I\'m using this code:
savePdf () { var pdf = new jsPDF({u
For all of you who are using webpack what I did is I added html2canvas to a ProvidePlugin. You can read about this here
webpack
html2canvas
ProvidePlugin
// webpack configuration plugins: [ new webpack.ProvidePlugin({ html2canvas: 'html2canvas' }); ]