So I thought, it must be something like a rendering timing issue. I changed the onMounted() routine to an ionViewDidEnter() routine, but still the same error message (and the ion-menu opened as expected). Here then I waited for 25ms, too, just to see, what happens, and guess what? The error message disappeared, but I must not use a setTimeout(), because this is not the way, it should be done, never ever.