Ionic Custom Pipe Error when build, The pipe could not be found

I have problem when I want to build my app in android platform
I have error when i do Build Command but no error when I serve or run.
The error like this :

[12:35:26] build prod started …
[12:35:26] clean started …
[12:35:26] clean finished in 6 ms
[12:35:26] copy started …
[12:35:26] ngc started …
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova).
Error: Template parse errors:
The pipe ‘cdvphotolibrary’ could not be found ("


<ion-col *ngFor=“let [ERROR ->]item of showPhoto | cdvphotolibrary; let i = index” col-6 col-sm-4 col-md-6 col-lg-4 col-xl-2>
"): ng:///C:/Users/User/Dropbox/Website/ionic2/Ionium2/src/pages/native-photo-library/native-photo-library.html@16:29

My Ionic Info:
My app

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 2.0.2
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.5.3

System:

Node : v6.9.1
OS   : Windows 8.1
npm  : 3.10.10

My app.module.ts like this :

import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule, enableProdMode } from '@angular/core';  //enableProdMode : make development faster
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { CDVPhotoLibraryPipe } from './pipes/cdvphotolibrary.pipe';
@NgModule({
  declarations: [
    MyApp,
    HomePage,
    CDVPhotoLibraryPipe,
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
    IonicStorageModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
  ]
})
export class AppModule {}

I have tried do ? in my transform

import { Pipe, PipeTransform } from '@angular/core';
@Pipe({name: 'cdvphotolibrary'})
export class CDVPhotoLibraryPipe implements PipeTransform {
  constructor() {}
  transform(var?: string, args?):any {
    //do pipe
    return pipe;
  }
}

Hope somebody help me…
I have stuck in this in a 2 days…

What is the filename of your pipe?
What is the exact command you are running when you get the error?

My filename : cdvphotolibrary.pipe.ts
I put my pipe file in /src/app/pipe Folder

I do :

ionic cordova build android --prod

I changed your post to format your code or error message correctly. Please use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

I have my pipes in /src/pipes, not in /app and have an additional ../in the import of course.