title: Nest can't resolve dependencies of the ....Please make sure that the argument .. at index [0] is available in the
body: <p>I have:</p>
  
  <pre><code>import { Injectable } from '@nestjs/common';
  import { InjectModel } from '@nestjs/sequelize';
  import { Conversation } from './conversation.model'
  import { FindConversationsDto } from '../dto/conversations.find'
  
  @Injectable()
  export class ConversationsService {
      constructor(
          @InjectModel(Conversation)
          private conversationModel: typeof Conversation
      ) { }
  
      async findConversations(queryParams: FindConversationsDto): Promise&lt;Conversation[]&gt; {
          return new Promise((resolve) =&gt; [])
          // return await this.conversationModel.findAll();
  
  
      }
  }
  </code></pre>
  
  <p>And I get this weird error:</p>
  
  <pre><code>Nest can't resolve dependencies of the ConversationsService (?). Please make sure that the argument ConversationRepository at index [0] is available in the ConversationsModule context.
  
  Potential solutions:
  - If ConversationRepository is a provider, is it part of the current ConversationsModule?
  - If ConversationRepository is exported from a separate @Module, is that module imported within ConversationsModule?
    @Module({
      imports: [ /* the Module containing ConversationRepository */ ]
    })
  </code></pre>
  
  <p><code>ConversationModule</code> is:</p>
  
  <pre><code>import { Module } from '@nestjs/common';
  import { ConversationsController } from './conversations.controller';
  import { ConversationsService } from './conversations.service';
  
  @Module({
    controllers: [ConversationsController],
    providers: [ConversationsService]
  })
  export class ConversationsModule {}
  
  </code></pre>
  
  <p>Not sure what <code>ConversationRepository</code> is referring to.</p>