Добрый день.
Пытаюсь сделать авторизацию в Nest.js
Авторизация в auth контроллере использует модуль из users
Ловлю вот такую ошибку
[Nest] 356056 - 2019-11-01 12:08:20 PM [ExceptionHandler] Nest can't resolve dependencies of the AuthService (UsersService, JwtService, ?). Please make sure that the argument UserModel at index [2] is available
in the AuthModule context.
[0]
[0] Potential solutions:
[0] - If UserModel is a provider, is it part of the current AuthModule?
[0] - If UserModel is exported from a separate
@Module, is that module imported within AuthModule?
[0]
@Module({
[0] imports: [ /* the Module containing UserModel */ ]
[0] })
[0] +2ms
[0] Error: Nest can't resolve dependencies of the AuthService (UsersService, JwtService, ?). Please make sure that the argument UserModel at index [2] is available in the AuthModule context.
[0]
[0] Potential solutions:
[0] - If UserModel is a provider, is it part of the current AuthModule?
[0] - If UserModel is exported from a separate
@Module, is that module imported within AuthModule?
[0]
@Module({
[0] imports: [ /* the Module containing UserModel */ ]
[0] })
Пишет типа что не импортировано в модуль, но вроде бы импортировано.
https://gist.github.com/ktuhh/77eefff11cc9a4f339d2f64330c08f3b - auth.service
https://gist.github.com/ktuhh/46fba199d15af7a00c0d0157c20bed30 - auth.module