Skip to content

v2.0.0-beta.3 Error #171

@poshl9k

Description

@poshl9k

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 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions