Hello!
I have a weird issue. I have a created a reusable module that I published in a private registry. The module itself doesn't have the @Global() decorator as I don't want it to be global all the time, but I did use the extra options (https://docs.nestjs.com/fundamentals/dynamic-modules#extra-options) of the configurable module builder to extend the global field for the DynamicModule class. This is similar to nestjs/config where you can pass a isGlobal parameter to the module initialization.
Now, I have used it in another NestJS application and imported the module in app.module.ts with the global flag. However, other modules can't seem to resolve providers as dependencies coming from that module.
To check what I did wrong, I tried to create a wrapper module and added the @Global() decorator to it. I then imported the reusable module I made within it, and re-exported the providers I needed. I then added the wrapper module to app.module.ts instead -- and that worked.
What could possibly be wrong with my dynamic module setup? Do I really need to add the @Global() decorator to make it global?
EDIT: I forgot to mention that I'm trying to use it for an inject property for another dynamic module.
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).