title: Nest JS cannot resolve dependencies in the service
body: <p>I have created a core module which has a service within it.</p>
  
  <pre><code>import { Module } from '@nestjs/common';
  import { CacheService } from './cache.service';
  
  
  @Module({
    providers:[{ provide: CacheService, useValue: new CacheService()}],
    exports:[{ provide: CacheService, useValue: new CacheService()}]
  })
  export class CoreModule {}
  </code></pre>
  
  <p>I have imported the <code>CoreModule</code> in the <code>AppModule</code>.</p>
  
  <pre><code>@Module({
      imports: [
          TypeOrmModule.forRoot(typeOrmConfig),
          CoreModule,
          offerModule
      ],
      controllers: [AppController],
      providers: [AppService]
  })
  export class AppModule {}
  </code></pre>
  
  <p>There is a offer module imported in the <code>AppModule</code>. When I am trying to inject the <code>CacheService</code> in the checkmodule, it is throwing the error below.</p>
  
  <pre><code>2019-02-05 13:40:25 [error]:    Error: Nest can't resolve dependencies of the OfferService (OfferRepository, ?, Connection, AppLogger). Please make sure that the argument at index [1] is available in the OfferModule context.
      at Injector.lookupComponentInExports (C:\Project Workspace\ts-sharing\node_modules\@nestjs\core\injector\injector.js:144:19)
      at &lt;anonymous&gt;
      at process._tickDomainCallback (internal/process/next_tick.js:229:7)
      at Function.Module.runMain (module.js:696:11)
      at Object.&lt;anonymous&gt; (C:\Project Workspace\ts-sharing\node_modules\ts-node\src\bin.ts:157:12)
      at Module._compile (module.js:653:30)
      at Object.Module._extensions..js (module.js:664:10)
      at Module.load (module.js:566:32)
      at tryModuleLoad (module.js:506:12)
      at Function.Module._load (module.js:498:3)
   1: v8::internal::compiler::Type::Negative31
   2: v8::internal::wasm::SignatureMap::Find
   3: v8::internal::Builtins::CallableFor
   4: v8::internal::Builtins::CallableFor
   5: v8::internal::Builtins::CallableFor
   6: 0000023CE08843C1
  </code></pre>
  
  <p>Can someone please help on this.</p>