In auth module am trying to access userservice class from usermodule, am getting error like cannot find module src/user/user.service Please find sample code ---
Thanks in advance.
Auth Module
@Module({
imports : [UserModule],
controllers: [AuthController],
providers: [JwtStrategy, AuthService],
exports : [JwtStrategy, AuthService]
})
export class AuthModule {}
UserModule
@Module({
imports : [ MongooseModule.forFeature([{ name : 'User', schema : UserSchema }])],
controllers: [UserController],
providers: [UserService],
exports : [UserService, MongooseModule.forFeature([{ name : 'User', schema : UserSchema }])]
})
export class UserModule {}
AppModule
imports: [
AuthModule,
UserModule,
MongooseModule.forRoot('--',
)],
controllers: [AppController],
providers: [AppService]
})
export class AppModule {}