-
Notifications
You must be signed in to change notification settings - Fork 337
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: Internal Error: Couldn't find an svg element in svg string #11775
Comments
Could you properly format your post using code blocks for code and terminal outputs? Thanks. |
Are all the R packages and both R code cell and mermaid cell required? We unfortunately don't have the time to figure out what's really needed to what's not, such as all your R packages (including pacman), so you have to make the example small as requested. |
I strongly suspect, the R code is completely unnecessary and the issue comes from the mermaid cell which needs for LaTeX/PDF to use Chromium-based browser to turn the HTML diagram into an actual image. If you have a chromium-based browser (Chrome, Edge, Brave, Chromium, etc.), I suggest to use it instead of the one installed by Quarto via
|
Thanks for the report! Independently of the cause, we should consider changing that message a bit. |
Both points turned out to be true. The culprit was the Mermaid code and removing the quarto chromium install while installing chrome solved the issue. The document renders now and adding the R code back in is also not a problem. Thanks for the quick replies. And btw, thanks for all the work you put into quarto. Makes writing a PhD that little bit more fun. |
Thanks, this confirmed two things:
|
Duplicate of #10961 |
Bug description
I have a quarto document that includes text, a mermaid diagram and a ggplot graph in a r code chunk. Everything used to work fine when rendering to pdf but now I get this error.
If I remove all plots, the document renders fine. I've included a minimal example below.
As the error message says I should consider reporting the bug, I thought to do so.
Steps to reproduce
Expected behavior
Render the quarto document and output a pdf.
Actual behavior
The error message above.
Your environment
Quarto check output
The text was updated successfully, but these errors were encountered: