Skip to content
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

When i update to 2.23.0 ,build failed #3176

Closed
KingDracula opened this issue Oct 11, 2023 · 5 comments
Closed

When i update to 2.23.0 ,build failed #3176

KingDracula opened this issue Oct 11, 2023 · 5 comments

Comments

@KingDracula
Copy link

I was used in nestjs ,when i build ,it is failed
but ,before i was used 2.18.0 is working fine.
so how to fix this error ?
thanks
image

@char0n
Copy link
Member

char0n commented Oct 11, 2023

@char0n
Copy link
Member

char0n commented Oct 11, 2023

Created new discussion on DefinitelyTyped/DefinitelyTyped#67032. Let's wait a bit for authors to fix it.

@char0n
Copy link
Member

char0n commented Oct 12, 2023

To sum it up:

This error is because you are on typescript < 5
@types/ramda, which is backed by types-ramda is labeled that min support is typescript 5.0
Specifically, the const Type Parameter syntax is being used here

So if you're using TypeScript >5, you're just fine. If you use TypeScript >= 4 < 5, you have to use the overrides:

"overrides": {
   "swagger-client": {
     "types-ramda": "0.29.4"
   }   
}

Yarn resolutions is the mechanism of overrides specific to yarn.

More info in: ramda/types#64

@char0n char0n closed this as completed Oct 12, 2023
@char0n
Copy link
Member

char0n commented Oct 17, 2023

Related to swagger-api/apidom#3279

@char0n
Copy link
Member

char0n commented Oct 17, 2023

Issue explicitly addressed in swagger-api/apidom#3281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants