Hello, I need your help guys if possible because I have a Nestjs module that works perfectly fine in my project but I need to export it in a package. Is it a way to make it work since I have this issue when I import the module from my package :
ERROR [ExceptionHandler] UndefinedDependencyException [Error]: Nest can't resolve dependencies of the PersonService (?, PersonRepository, CivilityRepository, FamilySituationRepository, CityRepository, CountryRepository, EmploymentStatusRepository). Please make sure that the argument dependency at index [0] is available in the PersonModule context.
Potential solutions:
- Is PersonModule a valid NestJS module?
- If dependency is a provider, is it part of the current PersonModule?
- If dependency is exported from a separate @Module, is that module imported within PersonModule?
@Module({
imports: [ /* the Module containing dependency */ ]
})