title: Ionic 4 - Pipe could not be found
body: <p>I have 2 pages to use a custom pipe. I have created a folder in src/app named pipes. And created a file pipes.module.ts</p>
  
  <pre><code>import { NgModule } from '@angular/core';
  import { TranslatePipe } from './translate.pipe';
  @NgModule({
      declarations: [
          TranslatePipe
      ],
      imports: [],
      exports: [
          TranslatePipe
      ]
  })
  export class PipesModule {}
  </code></pre>
  
  <p>and im importing it from my first component module file 
  devices.module.ts</p>
  
  <pre><code>import { PipesModule } from '../pipes/pipes.module';
  
  @NgModule({
    imports: [
      ...
      PipesModule
    ],
    declarations: [DevicesPage, ]
  })
  export class DevicesPageModule {}
  </code></pre>
  
  <p>this component works well when i use pipe.</p>
  
  <p>but i have another component too.
  home.module.ts</p>
  
  <pre><code>import { PipesModule } from '../pipes/pipes.module'
  
  @NgModule({
    imports: [
      PipesModule,
      CommonModule,
      FormsModule,
      IonicModule,
      RouterModule.forChild([
        {
          path: '',
          component: HomePage
        }
      ]),
      ComponentsModule,
      MatPaginatorModule,
  
  
    ],
    declarations: [HomePage]
  })
  export class HomePageModule {}
  </code></pre>
  
  <p>im calling home page from devices page with a button. But i get error when i click the button.</p>
  
  <p>pipes.module.ts;</p>
  
  <pre><code>import { NgModule } from '@angular/core';
  //import custom pipes here
  @NgModule({
      declarations: [
          TranslatePipe
      ],
      imports: [],
      exports: [
          TranslatePipe
      ]
  })
  export class PipesModule {}
  </code></pre>