Open seyidaniels opened 6 years ago
I'm also getting same problem with Angular 5
i am getting similar error using Angular 4.4
any solution?
Possible duplicate of https://github.com/niklasvh/html2canvas/issues/1440
how to fix it ? using angular7 html2canvas@1.0.0-rc.3 Emergency
@niklasvh
any fixes on this?
I found a fix. Import html2canvas
this way :
import * as _html2canvas from "html2canvas";
const html2canvas: any = _html2canvas;
Works for me on Angular 5.
I downloaded the latest version and lazy loaded the js file on my component which is showing when i go to inspect element-> network/js but i keep getting this error: ERROR TypeError: html2canvas_1.default is not a function .
Please kindly help! Currently on angular version 5.2.11 and angular cli version 1.7.4