We were building a pnpm-workspace monorepo with a nest app and some side libraries. Now we start building a second app and we want to extract some shared domain modules to a library(Some wrapper modules of logic connect to another internal service).
These shared domain modules have some DI services originally provided by global module in the app, however, after I moved a module to this shared package and import from it. As long as I start the dev server and the app says the injected service is missing and I got error like
Nest can't resolve dependencies of the <XService> (?, HttpService). Please make sure that the argument Logger at index [0] is available in the <XModule> context.
Any idea how can I fix that? The Logger for example, is exported from LoggerMoudle which is set as global module in the app.module.ts