Why am I getting unhandled errors using useQuery? - TanStack