title: Nest cannot create the module instance. Often, this is because of a circular dependency between modules
body: <p>I have a circular dependency issue but I don't see where it's coming from. The whole error message reads as follows:</p>
  <pre><code>Nest cannot create the module instance. Often, this is because of a circular dependency between modules. Use forwardRef() to avoid it.
  
  (Read more: https://docs.nestjs.com/fundamentals/circular-dependency)
  Scope [AppModule -&gt; EntriesModule]
  </code></pre>
  <p>So I gather there's a circular dependency issue between the specified modules, namely the <code>AppModule</code> and <code>EntriesModule</code>. The <code>EntriesModule</code> is in the <code>AppModule</code> module's <code>imports</code> and it looks as follows:</p>
  <pre><code>@Module({
      providers: [
          EntryService,
          IsUniqueEntryTitle,
      ],
      imports: [
          AwsModule,
          TypeOrmModule.forFeature([
              EntryEntity,
              CategoryEntity,
          ]),
          CategoriesModule,
          SharedModule,
      ],
      controllers: [
          EntryController,
      ],
      exports: [
          EntryService,
      ],
  })
  export class EntriesModule {}
  </code></pre>
  <p>As far as I understand the circular dependency error is thrown when module A depends on module B , that in turn, depends on module A. In other words they have each other in their imports. But seems like it's not the case here. Why am I getting this error then?</p>