So I recently have started trying to dive deeper into the realm of complex analysis, but to get there I needed some notions of multivariable/vector calculus for stuff like line integrals, etc... I don't own a book or anything to follow, and instead I'm just using the internet for stuff (after all this is only for curiosity anyways), though I do have good background knowledge on single-variable calculus, real analysis, and even some complex analysis stuff (simple things like euler's formula and the genre).
Generally there are a lot of resources to see and things are going great, but while down the rabbit-hole of path independence (as a general concept), I got introduced to the concept of conservativeness. Now although I don't intend going deep into those branches of math quite yet, it left me with a question. If I understand it correctly, holomorphic functions like $e^z$ on a simply connected region are path-independent, and have contour integrals equal to 0. But if we treat $e^z$ as a vector field $(x,y) \rightarrow (e^x \cos(y), e^x \sin(y))$, the curl not only is different from $0$, but it makes intuitive sense since there are many "circles" in the field due to how the involved cos and sin manipulate angles.
So my question is, did I get something wrong, and if not, why isn't the result of a contour integral the same as the result of the equivalent vector integral with my defined vector field?