Skip to content
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

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

Open
rajeshtva opened this issue Apr 13, 2023 · 2 comments
Open

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

rajeshtva opened this issue Apr 13, 2023 · 2 comments

Comments

@rajeshtva
Copy link

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
Copy link

mbi commented Apr 23, 2024

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.

@jurajofsweden
Copy link

Same here, the problem was I passed in the wrong filename as input. The code does not seem to check the inputs are valid, but when I corrected the filename, it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants