Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

324
Views
Nest can't resolve dependencies .Please make sure that the argument ImageFileS ervice at index [1] is available in the ItemModule context

I get this error

ERROR [ExceptionHandler] Nest can't resolve dependencies of the ItemController (ItemService, ?). Please make sure that the argument ImageFileS service at index [1] is available in the ItemModule context.

I have this code

ImageFileModule :

@Module({
  imports: [TypeOrmModule.forFeature([ImageFile]), ConfigModule, ItemModule],
  controllers: [ImageFileController],
  providers: [ImageFileService],
  exports: [ImageFileService],
})
export class ImageFileModule {}

ItemModule :

@Module({
  imports: [TypeOrmModule.forFeature([Item])],
  controllers: [ItemController],
  providers: [ItemService],
  exports: [ItemService],
})
export class ItemModule {}

Service That I am trying to use:

@Injectable()
export class ImageFileService {
  constructor(
    @InjectRepository(ImageFile)
    private readonly imageFileRepository: Repository<ImageFile>,
    private readonly configService: ConfigService,
    private readonly itemService: ItemService,
  ) {}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!