handleSerialError fails when setting err.routerCode with TypeError(s) - TanStack