It's undefined, because there's more than one solution. 1 is a good answer. But there are others, depending on how you approach the problem: is it x**x, 0**x, x**0 for x approaching 0? You get a different outcome every time.
It's not like the division 1/0, for which there is no finite answer.