title: Cant export service from module 'it was neither declared nor imported'
body: <p><br/>
  I am trying to export an Service from one of my modules but i only get the following error:</p>
  
  <pre><code>ERROR Error: Uncaught (in promise): 
  Error: Can't export value ConfirmDialogService from SharedModule as it was neither declared nor imported!
  </code></pre>
  
  <p>My Module is the following:</p>
  
  <pre><code>import { NgModule }                 from "@angular/core";
  import { CommonModule }             from "@angular/common";
  import { FormsModule }              from "@angular/forms";
  import { RouterModule }             from "@angular/router";
  import { MaterialModule }           from "@angular/material";
  
  import { ConfirmDialogComponent }       from './confirm-dialog/confirm-dialog.component';
  import { ConfirmDialogService }         from './confirm-dialog/confirm-dialog.service';
  
  @NgModule({
      imports: [
          RouterModule,
          CommonModule,
          MaterialModule,
          FormsModule
      ],
      providers: [
          ConfirmDialogService
      ],
      declarations: [
          ConfirmDialogComponent 
      ],
      exports: [
          ConfirmDialogComponent 
          ConfirmDialogService
      ]
  })
  export class SharedModule {}
  </code></pre>
  
  <p>The files do exist and are referenced correctly in TS but when running the app the error appears.</p>