The code above works with these package versions:
(KiteViewer) pkg> status
Status `~/repos/KiteViewer/Project.toml`
[537997a7] AbstractPlotting v0.15.9
[e9467ef8] GLMakie v0.1.25
[5c1252a2] GeometryBasics v0.3.5
[ee78f7c6] Makie v0.12.0
[7269a6da] MeshIO v0.4.3
It fails with these package versions:
(KiteViewer) pkg> status
Status `~/repos/KiteViewer/Project.toml`
[537997a7] AbstractPlotting v0.12.18
[e9467ef8] GLMakie v0.1.13
[5c1252a2] GeometryBasics v0.3.9
[ee78f7c6] Makie v0.11.1
[dbd62bd0] MakieGallery v0.2.17
[7269a6da] MeshIO v0.4.3
So the problem was that I installed MakieGallery which resulted in downgrading Makie and other packages which made my code fail…
A pity that MakieGallery is not compatible with the newest version of Makie…