"Invariant failed" error and a blank page - TanStack