We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello I am getting this error while using retry
retry
(0 , async_retry_1.retry) is not a function
Here is my code:
await retry( async () => { await this.myMethod(arguments) }, { retries: 2 }, );
Could you please help?
The text was updated successfully, but these errors were encountered:
Well, I changed the import statement and it worked by require const retry = require('async-retry');
require
const retry = require('async-retry');
But based on your example it should've been worked with the import 🤔
import
Sorry, something went wrong.
I did have the same error using with typescript, but when i changed the syntax to 'import * as retry from 'async-retry'' it works, i dont know how
If you still stuck, check out this complete solution in TypeScript.
No branches or pull requests
Hello
I am getting this error while using
retry
(0 , async_retry_1.retry) is not a function
Here is my code:
Could you please help?
The text was updated successfully, but these errors were encountered: