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

13.0.22 is broken: [error] TypeError: Cannot read properties of undefined (reading 'split') #934

Open
OnkelTem opened this issue Sep 23, 2024 · 2 comments

Comments

@OnkelTem
Copy link

OnkelTem commented Sep 23, 2024

The latest version (13.0.22) seems to be broken. For any swagger-spec I tried I always receive:

ℹ start generating your typescript api
[error] TypeError: Cannot read properties of undefined (reading 'split')

Which version we can use?

@OnkelTem
Copy link
Author

Trying 13.0.21: same error.

@OnkelTem
Copy link
Author

OnkelTem commented Sep 23, 2024

More detailed trace back:

main (yarn): no error
13.0.22 (yarn): [error] TypeError: Cannot read properties of undefined (reading 'split')
13.0.21 (yarn): [error] TypeError: Cannot read properties of undefined (reading 'split')
13.0.20 (yarn): [error] TypeError: e.values(...).some is not a function
13.0.19 (yarn): [error] TypeError: e.values(...).some is not a function
13.0.18 (yarn): [error] TypeError: u.merge is not a function
13.0.17 (yarn): [error] TypeError: u.merge is not a function
13.0.16 (pnpm): no error

Code used for testing:

  async generate() {
    const { files } = await generateApi({
      output: false,
      input: this.specLocalPath,
      moduleNameFirstTag: true,
      moduleNameIndex: 1,
    })
   // ...
  }

Swagger used for testing: petstore.yaml

So the most recent working version is 13.0.16

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

1 participant