Open ghost opened 2 years ago
Im having this issue as well.
@yogarasu are you using Typescript 3 or 4. I had this issue when using the latest version of the types package on TS3.
Fix the @types package at 1.3.0 and the issue may also go away.
Can confirm that npm i -D @types/async-retry@1.3.0
works, the latest version of the types definition has this code:
import { WrapOptions } from 'retry';
But the version of @types/retry
that got automatically downloaded didn't have that (I'm using typescript@4.8.3
).
Managed to fix it by running npm i -D @types/retry@latest @types/async-retry@latest
Installing @types/retry
solved it for me.
I haven't followed the details of whether the type of @types/retry has changed, but I got an error that option has no "retries", and I couldn't use this package.