getting errors doing query in nextjs
I'm getting this weird error and I don't really know why.

4 Replies
dependent-tanOP•4y ago
the error doesnt even make sense

dependent-tanOP•4y ago
as the code is completely different

vicious-gold•4y ago
that's transpiled code, so it's natural that it looks a bit different
try logging in your queryFn to narrow it down. Essentially, it means that there is a runtime error in your queryFn.
dependent-tanOP•4y ago
tried logging it an it really just fails at axios
and I really don't know why