Error: Cannot read properties of undefined (reading 'kind')

Turns out directory name of new singleton in /api was not matching directory name in content-types/.

My fault, but error handling on strapi’s side could be improved too (add some sort of codelint before attempting to build & run?)