Migrating from older version of got instance issues #2335
Replies: 1 comment
-
If anyone comes across the same issue, I was using the @types/got package instead of the types from the official package. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm currently migrating our older repository from an older version of got and coming across a plethora of issues disallowing me from proceeding any further.
Essentially, I think most of the issues stem from this:
I'm getting this error:
Type 'GotInstance<GotFn>' is not assignable to type 'Got'.
I tried typing everything to GotInstance, but then using get doesn't work while proviidng a generic json type. I've gone through the docs and eveything without the answers I need. It all boils down to me not exactly understanding the difference between GotInstance, Got, got and their different imports/package paths. What should I be doing?
Beta Was this translation helpful? Give feedback.
All reactions