Quote from esspho@Onur Kardelen this could caused by giving names to your lights. If you did so, you can try to delete the name(s) and recompile.
But I connected lights to buttons. When I pressed button, it opens named light. If I delete that names, how can I connect lights to buttons?