openapi-react-query-codegen icon indicating copy to clipboard operation
openapi-react-query-codegen copied to clipboard

v2.0.0-beta.3 Error

Open poshl9k opened this issue 1 year ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

yarn codegen
yarn run v1.22.19
$ openapi-rq -i http://127.0.0.1:8008/openapi.json
file:///...node_modules/@7nohe/openapi-react-query-codegen/dist/cli.mjs:22
        .choices(["@hey-api/client-fetch", "@hey-api/client-axios"])
         ^

TypeError: (intermediate value).choices is not a function
    at setupProgram (file:...node_modules/@7nohe/openapi-react-query-codegen/dist/cli.mjs:22:10)

To Reproduce yarn codegen

Expected behavior

yarn codegen                                  
yarn run v1.22.19
$ openapi-rq -i http://127.0.0.1:8008/openapi.json
✨ Creating Fetch client
✨ Done! Your client is located in: E:\code\shedule_front_mantine\openapi\requests

OS: Windows 11 x86_x64

Additional context

v2.0.0-beta.1 has no problems. thx for you app btw 👍

poshl9k avatar Nov 13 '24 09:11 poshl9k