This one has me stumped after I tried a few things such as export AidService from the AidModule and that did not work.
import { Module } from '@nestjs/common';
import { AidController } from './aid.controller';
@Module({
controllers: [AidController],
})
export class AidModule {}
I don’t think its asking me to import AidService into AidModule.
>Solution :
AidService does not exist in the context of the module so you have to add it as a provider and your controller would be able to resolve it.
import { Module } from '@nestjs/common';
import { AidController } from './aid.controller';
@Module({
controllers: [AidController],
providers: [AirService]
})
export class AidModule {}