I'm not sure if this was intended, but if you try to use axios-retry after you require in cjs, which worked until the last version (const axiosRetry = require('axios-retry');), an error will be thrown:
uncaughtException: axiosRetry is not a function
To fix this, you need to explicitly require default: const axiosRetry = require('axios-retry').default;
I assume that either this should be fixed in the code or at least in the documentation + release notes. Thanks!
Hello,
I'm not sure if this was intended, but if you try to use
axios-retry
after you require in cjs, which worked until the last version (const axiosRetry = require('axios-retry');
), an error will be thrown:To fix this, you need to explicitly require
default
:const axiosRetry = require('axios-retry').default;
I assume that either this should be fixed in the code or at least in the documentation + release notes. Thanks!