T
TanStack4y ago
dependent-tan

getting errors doing query in nextjs

I'm getting this weird error and I don't really know why.
{"fileName":"http://localhost:3000/_next/static/chunks/pages/index.js?ts=1663503142921 line 465 > eval","lineNumber":28,"columnNumber":25,"message":"assignment to undeclared variable _"}
{"fileName":"http://localhost:3000/_next/static/chunks/pages/index.js?ts=1663503142921 line 465 > eval","lineNumber":28,"columnNumber":25,"message":"assignment to undeclared variable _"}
No description
4 Replies
dependent-tan
dependent-tanOP4y ago
the error doesnt even make sense
No description
dependent-tan
dependent-tanOP4y ago
as the code is completely different
No description
vicious-gold
vicious-gold4y 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-tan
dependent-tanOP4y ago
tried logging it an it really just fails at axios and I really don't know why

Did you find this page helpful?