-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
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
Property 'default' does not exist on type 'SuperAgentStatic' #98
Comments
Hm, interesting that the PR to change this had the opposite problem. @Kosta-Github what versions of superagent and @types/superagent were you using when seeing the original issue and creating the fix? @timmartin - If this is blocking you in some way and you need and urgent workaround until this is resolved, you can copy the class.mustache file, change it and use it as a custom template file |
@here This is is still an issue for me.
|
@sloan-dog - Hm, considering we have seen some inconsistencies in the behavior here, can you try out what happens if you downgrade the version of Does it work if you disable typings with an "as any" cast btw? If so, it might be a bug in |
@here I've had this issue before and for me what resolves it is adjusting compiler options in the tsconfig. This may not solve it for everyone, but adding |
same issue, any updates? |
No updates from my side sadly. Have you tried what tgilland95 suggested above? |
I generated some code, and it fails the Typescript build with
The code in question is
It seems that the
default
property doesn't exist according to@types/superagent
.At first glance this issue seems to have been introduced by this change. I can't find a related issue or any other context on that change, but it's clearly a deliberate change that fixed some other problem.
I'm using Superagent v5.1.0 and @types/superagent v4.1.3.
The text was updated successfully, but these errors were encountered: