-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
queries not working after upgrading from 0.5.3 to 1.0.6 #75
Comments
I had a similar problem. For me upgrading my typescript version to the latest worked. |
I'm on typescript 5.4.5, which is the latest version. |
@sourceful-mia, sorry you are facing some issues.
with the spec file you provided If you could provide:
I would gladly take a look further into your problem. |
The prettier implementation breaks the queries generation. Remove edit: The workaround is to add generated files to the |
I was able to generate the code using your example with prettier installed and no .prettierignore file. I will have to test more. If you have time to test more I would love more feedback to figure this out |
@seriouslag https://github.com/sourceful-mia/rep-openapi-react-query Note: I use node16 because that's my current work env and what I need it to work in. if you run
then it works fine. If you then run
then it stops working. I think @gynekolog might be right about prettier. |
@seriouslag Have you tried it on stackblitz or you made a local clone? I tried to run |
I reproduced the issue, and I will debug it. Thank you |
I debugged the issue and pushed the fix to #74 Prettier was switching quotes with double quotes and breaking our comparisons. Thank you all for helping me debug this! |
Released a test version with this patch under: @seriouslag/openapi-react-query-codegen@next |
Very cool repo! Love the work that's being done.
I have an issue with version 1.0 when trying to codegen for a very simple OpenAPI Spec.
When doing codegen with v0.5.3, I get content in my generated
index.ts
(eg:useDefaultServiceGetProjects
)However, when doing codegen with v1.0.6, none of the files contain the above hook.
My spec is generated with
tsoa
and valid according to https://editor.swagger.io/Is something missing from my spec, or is there a bug in this repo?
Here's the spec
The text was updated successfully, but these errors were encountered: