spot icon indicating copy to clipboard operation
spot copied to clipboard

Generation failed on the example spec when in yarn workspace

Open vacavaca opened this issue 3 years ago • 1 comments

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

vacavaca avatar Dec 08 '22 12:12 vacavaca

I had same problem

stels-cs avatar Jul 06 '23 16:07 stels-cs