Skip to content

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

@vacavaca

Description

@vacavaca

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions