Open CosmoFruit opened 2 years ago
Hello, We have a starter repo that could help you to start from scratch! 🤞 https://github.com/Finastra/angular-nestjs-starter/blob/main/apps/server/src/app/app.module.ts
@Pi5rr5 thx for link, after some tests i have conclusion:
app.useGlobalGuards(app.get(TokenGuard));
Nest can't resolve dependencies of the TokenGuard (Reflector, ?). Please make sure that the argument OidcService at index [1] i
s available in the HealthModule context.
also reproduce in https://github.com/Finastra/angular-nestjs-starter/blob/main if off global use and add
@UseGuards(TokenGuard)
@Controller('health')
ERROR [ExceptionHandler] Nest can't resolve dependencies of the TokenGuard (Reflector, ?). Please make sure that the argument OidcService at index [1] is available in the AppModule context.
if we add import OidcModule in AppModule
imports: [ OidcModule, OidcModule.forRootAsync({...})
then get next error:
Nest can't resolve dependencies of the OidcService (?, SSRPagesService). Please make sure that the argument OidcModuleOptions at index [0] is available in the OidcModule context.
plz help to setup from scratch