Closed Roman-Cecile closed 4 years ago
I've resolved the problem.
my version was 0.1.1 and with the last version, import has changed.
So i change import htmltoimage from "html-to-image
to import {jpeg} from "html-to-image
and it's work.
Thanks
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Hello, I've installed html-to-image in my project and it's work in development mode with this code :
But when i push my project in production mode i get
Uncaught TypeError: Cannot read property 'toJpeg' of undefined
Have you got advices to resolve this problem ?
Thanks