process is not defined error when calling server function - TanStack