I am trying to set up a TypeORM module using forRootAsync. Inside it, I am using the useClass property and passing my custom class TypeOrmConfigService.
The issue I am having is that I am trying to pass a namespace for a configuration inside it that contains my database configurations. However, when I run it, it fails to bootstrap and says it can't resolve my namespace config.
I tried including the configModule inside the array of the imports property, but it still fails. According to the documentation, the configModule is not global and needs to be imported into each module (unless defined globally).
So, I think the issue lies in the core module of the @nestjs/typeorm package, which doesn't import the configModule and can't resolve the namespaces. However, I have no idea how to pass it to the service or module, and the documentation doesn't seem to provide any hints or information about it.
Below is my code, and any help or advice would be much appreciated. 🙂