Potential solutions:
- If RolesRepository is a provider, is it part of the current AppModule?
- If RolesRepository is exported from a separate
@Module, is that module imported within AppModule?
@Module({
imports: [ /* the Module containing RolesRepository */ ]
})