Closed DaiLoc5698 closed 5 hours ago
Currently, to make monorepo SDK generation working, you should generate SDK library per each package.
If you want to make it advance, can you give me a reproducible repo?
Currently, to make monorepo SDK generation working, you should generate SDK library per each package.
If you want to make it advance, can you give me a reproducible repo?
We use Nestia in a PNPM monorepo and generate the sdk as a package. Works without issues
Currently, to make monorepo SDK generation working, you should generate SDK library per each package. If you want to make it advance, can you give me a reproducible repo?
We use Nestia in a PNPM monorepo and generate the sdk as a package. Works without issues
I think it is the monorepo composed with multiple NestJS sub repositories.
No way to build integrated SDK in such circumstance.
Just build multiple SDK libraries and merge them into one by yourself please.
Question
Hello!
I am encountering an issue with the Nestia SDK in my project setup. Here are the details:
Problem Description I am working on a Monorepo with multiple packages. I am facing an issue when reusing packages within my repo or when integrating external library packages. Specifically, the SDK fails to generate code for certain modules.
Code Snippets Here is a snippet of my
AppModule
:Here is my configuration:
Issue Details In this setup, the SDK fails to generate code for two specific modules:
AuthModule
(an internal package in the repo) andNotificationModule
(an external library).Upon investigation, I found the issue arises from the following code snippet in the
NestiaSdkApplication.ts
file:It appears that the
getSourceFile
function is unable to retrieve the specified file, which prevents the SDK from generating the necessary code for these modules.Could you please investigate this issue and provide guidance on how to resolve it? Any insights or potential fixes would be greatly appreciated.
Thank you!