I identified the problem. Installing MakieGallery for creating a system image downgraded Makie which made my code fail. See: How to use a Button in GLMakie
No solution yet for the original question, though, because by default it requires MakieGallery.