When I initially tested html2canvas as a standalone script, it worked perfectly. However, when attempting to use the npm package version, it is proving to be quite uncooperative. Essentially, it does not execute any actions or trigger the then
function.
The version of the installed package is v0.5.0-alpha2
Does anyone have any suggestions on how to resolve this issue?
var html2canvas = require('html2canvas');
html2canvas(document.body).then(function(canvas) {
debugger;
document.body.appendChild(canvas);
});