-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Is REST API Codegen broken with TypeScript 4.8? #2565
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
Comments
I think this is the old issue I was thinking of: rtk-incubator/rtk-query-codegen#83 |
Test with typescript 4.8.0-dev.20220803 |
And works fine with typescript 4.7.4. |
See #2425. It's very important that you only have one version of TypeScript in your project and there is not a trace of type mismatch between the types used by oazapfts and the codegen or things will break. |
Hi @phryneas. |
Are we saying that this is actually working in the PR or other places that have TS 4.8? |
I'm not seeing this issue with TS 4.8 final (tested with 4.8.2), so, closing this issue. Thanks a lot for reply here and on Twitter. |
Hello,
I was playing with TypeScript 4.8, and after hitting #2547 and working around it, it seemed that code generation also failed.
I found that I was still using
@rtk-incubator/rtk-query-codegen-openapi
, which is no longer mentioned in the docs, instead, the docs recommend using@rtk-query/codegen-openapi
, so I switched to it, but the same problem happened:(The parts replaced with
___
are specific API endpoint names)Note this bit
The missing alias is there both in the
@rtk-incubator/rtk-query-codegen-openapi
version that does not provide an API at all (only a custom query), and in the@rtk-query/codegen-openapi
version no matter what I make the config values (I tried making theexportName
of the API file becomeapi
, or something else other thanapi
, and the result is the same).I'm sure it happened in the past due to some dependency issue, but I cannot remember the details.
Is anyone else seeing this?
The text was updated successfully, but these errors were encountered: