However, the converted images are blank and while conversion I'm getting the following error:
Error inlining remote css file DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
Also, the useEffect keeps on running infinitely.
Any idea why? Also, I'm suspecting it's the issue with the closure of the convert().
Description
I want to trigger the conversion on mounting of the component. I have implemented it like this:
However, the converted images are blank and while conversion I'm getting the following error:
Error inlining remote css file DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
Also, the useEffect keeps on running infinitely.Any idea why? Also, I'm suspecting it's the issue with the closure of the convert().
Link to Reproduction
https://stackblitz.com/edit/react-tbku9t?file=src%2FApp.js
Steps to reproduce
No response
Version
0.0.9
Browser
No response
Operating System
Additional Information
No response