Error converting SVG to PNG: Error:g at Sharp.toFile…
- User
Error converting SVG to PNG: Error:g at Sharp.toFile (/Users/artem/Documents/GitHub/glrk_images_script/node_modules/sharp/lib/outp) at generateImage (/Users/artem/Documents/GitHub/glrk_images_script/src/index.js:75:6) at /Users/artem/Documents/GitHub/glrk_images_script/src/index.js:41:11 at Array.map () at init (/Users/artem/Documents/GitHub/glrk_images_script/src/index.js:34:34) at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
- Assistant
The error you're encountering when trying to convert SVG to PNG using the library in Node.js seems to be originating from the method of the module. The stack trace indicates that an error occurs when generating the image, specifically in the function in your code.