Closed ZhukovAlV closed 1 year ago
I'm sorry, I found how to write import in file html2canvas-loader.js
import html2canvas from 'html2canvas';
let blobValue;
window.html2canvas = html2canvas;
window.blobValue = 1;
In this case, everything will work. Thank you for your project
That seems to fix it for me too. Tested in Chrome and Safari. Safari bugs, but I guess it is like that in previous versions as well. Created a PR to fix it. Cool Add-on BTW!
VAADIN (version 23.2.7)
When start application error: Vaadin development mode initialized ReferenceError: require is not defined
The problem is in the file: html2canvas-loader.js
I read about this problem here: https://github.com/vaadin/flow/issues/14477
I try code:
change to:
But then I got another error :( TypeError: html2canvas is not a function