You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@crud({ model: User }) @controller('users')
@ApiTags('User')
export class UsersController {
constructor(@InjectModel(User) private readonly model) { }
}
[Nest] 7524 - 2021/01/10 下午3:09:59 [ExceptionHandler] Nest can't resolve dependencies of the UsersController (?). Please make sure that the argument UserModel
at index [0] is available in the UsersModule context.
Potential solutions:
If UserModel is a provider, is it part of the current UsersModule?
If UserModel is exported from a separate @module, is that module imported within UsersModule? @module({
imports: [ /* the Module containing UserModel */ ]
})
The text was updated successfully, but these errors were encountered:
@crud({ model: User })
@controller('users')
@ApiTags('User')
export class UsersController {
constructor(@InjectModel(User) private readonly model) { }
}
[Nest] 7524 - 2021/01/10 下午3:09:59 [ExceptionHandler] Nest can't resolve dependencies of the UsersController (?). Please make sure that the argument UserModel
at index [0] is available in the UsersModule context.
Potential solutions:
@module({
imports: [ /* the Module containing UserModel */ ]
})
The text was updated successfully, but these errors were encountered: