-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade html2canvas to html2canvas-pro in order to support the oklch() color function. #3748
Comments
hi everyone. I am getting error with it. |
Hello, I found a way to fix it. eg: it's work for me. |
It is the only solution I have found so far. |
Hi, @Juman8 |
@humashaaa this looks like a piece of webpack configuration |
it's in the webpack alias section. |
FYI: also works with the alias section in VITE. |
html2Canvas does not support several modern color functions, leading pdf output to fail when using a few modern UI frameworks such as DaisyUI.
e.g: daisyui@latest uses oklch color function, If we use jsPDF with daisyUI we facing an error
Error: Attempting to parse an unsupported color function "oklch"
Also, html2canvas-pro has several advantages over html2canvas, including:
<img />
The text was updated successfully, but these errors were encountered: