Say that for some complex number $w$
$$e^{wi} = a$$
Now raise both sides to $1/4$.
$$e^{wi/4} = a^{1/4}$$
Now $e^{wi/4}$ has a single defined value. Yet $a^{1/4}$ can have multiple values. So why is Euler's formula well defined for non-integer powers, since non-integer powers can yield multiple values?
The exponential function $\exp$ is single-valued. Non-integer powers are multi-valued functions defined by $a^b = \exp(b \log a)$, using any branch of the logarithm. In particular, $\exp(iwb)$ is just one possible value of $(\exp(iw))^b$. Since $\log(\exp(iw)) = iw + 2 \pi i n$ for arbitrary integer $n$, the full result is $$ \left(\exp(iw)\right)^b = \exp((iw + 2 \pi i n) b) = \exp(iwb + 2 \pi i n b) = \exp(iwb) \exp(2\pi i n b)$$ In particular, when $b=1/4$ there are four values, corresponding to $e^{2\pi i n/4} = 1, i, -1, -i$.