i got error by use InjectRepository() decorator.
constructor(
@InjectRepository(User)
private readonly userRepository: Repository<User>
) {
}
error:
Nest can't resolve dependencies of the UserSchedule (?). Please make sure that the argument default_UserRepository at index [0] is available in the AppModule context.
module
TypeOrmModule.forRootAsync({
useFactory: () => {
entities: [
"dist/entity/*.js"
]
},
})
how can i get UserRepository by @InjectRepository decorator?