Problem: text to image npm package not working

I saw the QR code example in wix examples and I was curious about how does that actually work. Then I did some research and came to know about data URIs. I thought about doing the same QR code thing with a package of npm ‘text to image’ which actually converts text into image data URI. I tried that in my local machine which has node js and npm installed and it worked. Then I installed same npm package in my wix site and tired to run a test but it just logged ‘Error’. Error had no explanations, even I tried to catch the error but it gave me nothing

when it works

when doesn’t work

Any quick help will be much appreciated.
Best Regards,
Ali :nerd_face: