skip to Main Content

Why nest js giving dependency injection error when i also imported modules in app module? – Javascript

this is my codes: Auth Module: @Module({ imports: [ TypeOrmModule.forFeature([User]), JwtModule.register({ secret: 'secret', signOptions: { expiresIn: '365d', } }) ], controllers: [AuthController], providers: [AuthService], }) export class AuthModule {} Auth Controller: @Controller("api") export class AuthController { constructor(private readonly appService: AuthService,…

VIEW QUESTION
Back To Top
Search