Generation failed on the example spec when in yarn workspace
vacavaca opened this issue · 1 comments
vacavaca commented
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 commented
I had same problem