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

Error: Method block not found #178

Open
vahidvdn opened this issue Jan 27, 2025 · 4 comments
Open

Error: Method block not found #178

vahidvdn opened this issue Jan 27, 2025 · 4 comments

Comments

@vahidvdn
Copy link

Describe the bug
When I want to run yarn codegen , It throws this error:

Error: Method block not found

And with version "v2.0.0-beta.1", I get this error:

Error: Variable declaration not found

To Reproduce
just run : yarn codegen

OpenAPI spec file
https://github.com/7nohe/openapi-react-query-codegen/blob/main/examples/petstore.yaml

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots or logs to help explain your problem.

  • OS: [e.g. macOS]
  • Version ^1.6.2

Additional context
Add any other context about the problem here.

@claudioBarreira89
Copy link

Did you ever find a solution for this? I'm facing the same problem

@vahidvdn
Copy link
Author

vahidvdn commented Apr 8, 2025

@claudioBarreira89 Unfortunately not. I just used Orval. It just works fine.

@claudioBarreira89
Copy link

Just realised I was missing a peer depencency ts-morph. It worked after adding it!

@vahidvdn
Copy link
Author

vahidvdn commented Apr 8, 2025

Interesting! However, it's not mentioned anywhere, or at least I didn't see it

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

No branches or pull requests

2 participants