main.lua:1: calling 'removeAllMenuItems' on bad self (playdate.menu expected, got table)
stack traceback:
[C]: in method 'removeAllMenuItems'
main.lua:1: in main chunk
Same story for getMenuItems
Using pdc 1.13.0
This happens when no items are added. Possibly also when there are items.
I'm not sure if this has worked in the past, but you should use playdate.getSystemMenu() to get the system menu instance (which is of typeplaydate.menu):
local menu = playdate.getSystemMenu()
menu:removeAllMenuItems()