I think it's something to do with CancelToken being deprecated, as documented here: https://axios-http.com/docs/cancellation