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

Generation failed on the example spec when in yarn workspace #2036

Open
vacavaca opened this issue Dec 8, 2022 · 1 comment
Open

Generation failed on the example spec when in yarn workspace #2036

vacavaca opened this issue Dec 8, 2022 · 1 comment

Comments

@vacavaca
Copy link

vacavaca commented Dec 8, 2022

Describe the bug
I tried to generate a basic openapi3 yml spec from the README example, works well in a standalone environment, but fails when working in a monorepo (yarn workspace) with a very long list of errors, starting with:

    Error: Type 'Request' is not generic.
    Type 'Response' is not generic.
    Type 'Request' is not generic.
    Type 'Response' is not generic.
    Type expected.
    Cannot find name 'infer'.
    '}' expected.
    Cannot find name 'P'.

To Reproduce
Setup a workspace with two packages, one with only @airtasker/spot as a dependency, and the other with few other unrelated dependencies.

Expected behavior
Generation completes

Desktop (please complete the following information):

  • OS: macos ventura
  • Yarn version: 1.22.19
  • Node version: 18.0.0
  • Spot version: 1.9.0

Additional context

@stels-cs
Copy link

stels-cs commented Jul 6, 2023

I had same problem

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