I had this problem too. What fixed it for me was closing and re-opening the project then double-clicking on “map” (under maps.json in the assets panel) before attempting to use the map editor.