piqnt / svgexport

SVG to PNG/JPEG command-line tool and Node.js module
927 stars 85 forks source link

Error: Evaluation failed: TypeError: el.getBBox is not a function #117

Open rajeshtva opened 1 year ago

rajeshtva commented 1 year ago

I am trying to convert an svg into an png file. FYI this is the svg but i am getting the following issue :

Error: Evaluation failed: TypeError: el.getBBox is not a function
    at __puppeteer_evaluation_script__:26:22

OS: Ubuntu 22.04 Node: v16.19.1

mbi commented 5 months ago

FWIW, I had the exact same issue. In my case I had an invalid entity in my source SVG, which became clear when opening the document in a browser.