i added a auth guard to my project and it worked fine but when i moved it to external library (to use it in different nest services) i got an error:
Nest can't resolve dependencies of the FronteggGuard (?). Please make sure that the argument Reflector at index [0] is available in the TasksModule context.
Potential solutions:
- Is TasksModule a valid NestJS module?
- If Reflector is a provider, is it part of the current TasksModule?
- If Reflector is exported from a separate @Module, is that module imported within TasksModule?
@Module({
imports: [ /* the Module containing Reflector */ ]
})
Error: Nest can't resolve dependencies of the FronteggGuard (?). Please make sure that the argument Reflector at index [0] is available in the TasksModule context.
how i can make it work?
i added the external library using yarn add file: ...