Which is the error?
We know that $$e^{\frac{2\pi i}{3}}=-\frac{1}{2}+ i\frac{\sqrt{3}}{2}.$$
What is the error in the following argument?
$$e^{\frac{2\pi i}{3}}=\left(e^{\pi i}\right)^{\frac{2}{3}}=(-1)^{\frac{2}{3}}=\left((-1)^{2}\right)^{\frac{1}{3}}=(1)^{\frac{1}{3}}=1.$$