samchon / nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
https://nestia.io/
MIT License
1.85k stars 95 forks source link

Issue when using yarn workspace #326

Closed clsx35 closed 1 year ago

clsx35 commented 1 year ago

https://github.com/clsx35/nestia-reproduce ^ reproduction repo

nestia setup has been already run.

steps: yarn to install packages. then cd packages/api, yarn nestia sdk to execute cli command. the following error occurs: @nestia/sdk has not been installed. Run "npx nestia setup" before.

if there are no specified dependencies in root package.json, it behaves fine. The error occurs when there are dependencies in root package.json.

samchon commented 1 year ago

Different TS version between root and packages/api directories.

It would better to setup nestia in the root directory, or configure manual setting considering hierarchical relationships.

If hard to keep manual configuration considering those relationships, giving up yarn workspace can be a solution.