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…