Empty svg files

I am using engine=tikz to produce a figure, which works fine for PDF.

However, If I want dev=svg, something goes wrong; the .svg file is basically just a skeleton. The .dvi file seems to be ok. I get the following message (on MacOS 10.15):

processing of PostScript specials is disabled (Ghostscript not found)
pre-processing DVI file (format version 2)
processing page 1
WARNING: 209 PostScript specials ignored. The resulting SVG might look wrong.
page is empty
graphic size: 0pt x 0pt (0mm x 0mm)
output written to path/to/myimage.svg

Same result with dev=svglite.

Do I need to install ghostscript? Any help appreciated!

EDIT:

This FAQ says that the above message is likely indicative of using Ghostscript version>=9.56.0 together with dvisvgm version<2.13.4, but I have:

$ gs --version
9.55.0

$ dvisvgm --version
2.13.3

We need a FAQ: How to do a minimal reproducible example ( reprex ) for beginners

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need.