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
Getting the following error when I try to register my LoginCommandHandler. When I comment it out, it works just fine.
...\node_modules\@nestjs\core\injector\module-ref.js:24
throw new unknown_element_exception_1.UnknownElementException();
^
Error: Nest cannot find given element (it does not exist in current context)
at Object.findInstanceByPrototypeOrToken (...\node_modules\@nestjs\core\injector\module-ref.js:24:19)
at Object.get (...\node_modules\@nestjs\core\injector\module.js:259:29)
at CommandBus.registerHandler (...\node_modules\@nestjs\cqrs\dist\command-bus.js:44:41)
at handlers.forEach.handler (...\node_modules\@nestjs\cqrs\dist\command-bus.js:38:42)
at Array.forEach (<anonymous>)
at CommandBus.register (...\node_modules\@nestjs\cqrs\dist\command-bus.js:38:18)
at AuthorizationModule.onModuleInit (...\src\modules\authorization\authorization.module.ts:63:25)
at NestApplication.callModuleInitHook (...\node_modules\@nestjs\core\nest-application-context.js:65:39)
Getting the following error when I try to register my LoginCommandHandler. When I comment it out, it works just fine.
Minimal example:
The text was updated successfully, but these errors were encountered: