title: NestJS Cannot resolve dependencies of the UsersModule
body: <p>NestJS Cannot resolve dependencies of the UsersModule. Error:</p>
  <blockquote>
  <p>Error: Nest can't resolve dependencies of the UsersModule (?). Please
  verify whether [0] argument is available in the current context.</p>
  </blockquote>
  <p>app.module.ts:</p>
  <pre><code>@Module({
    imports: [
      ConfigModule,
      DatabaseModule,
      GraphQLModule,
      UsersModule,
    ],
    providers: [
      ErrorService,
    ],
    exports: [
      DatabaseModule,
      ErrorService,
    ],
  })
  export class AppModule implements NestModule {}
  </code></pre>
  <p>users.module.ts:</p>
  <pre><code>@Module({
      imports: [
          DatabaseModule,
          ErrorService,
      ],
      providers: [
          UsersService,
          ...usersProviders,
          UserResolver,
      ],
  })
  export class UsersModule {
      constructor(private readonly errorService: ErrorService) {}
  }
  </code></pre>
  <p>Problem is this ErrorService, but for instance Database module is used in similar way, and it works without any error. I'm little confused) Maybe somebody would help. Thank you.</p>