Friends,
I cleanup my working code with apk in ionic 3. But now I can create apk but after loading show a white page. On seeing in console i got error as
Uncaught Error: Unexpected value 'undefined' imported by the module 'AppModule'
at syntaxError (vendor.js:101286)
at vendor.js:114984
at Array.forEach (<anonymous>)
at CompileMetadataResolver.getNgModuleMetadata (vendor.js:114961)
at JitCompiler._loadModules (vendor.js:126391)
at JitCompiler._compileModuleAndComponents (vendor.js:126364)
at JitCompiler.compileModuleAsync (vendor.js:126293)
at PlatformRef_._bootstrapModuleWithZone (vendor.js:4893)
at PlatformRef_.bootstrapModule (vendor.js:4879)
at Object.451 (main.js:4721)
my app.module.ts is
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { HttpModule } from '@angular/http';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { AboutPageModule } from '../pages/about/about.module';
import { ContactPageModule } from '../pages/contact/contact.module';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { TabsPageModule } from '../pages/tabs/tabs.module';
import { WelcomePageModule} from '../pages/welcome/welcome.module';
//import {BrokerListPageModule} from '../pages/broker-list/broker-list.module';
import {LocalbodyListPageModule} from '../pages/localbody-list/localbody-list.module';
//import {BrokerDetailPageModule} from '../pages/broker-detail/broker-detail.module';
import { Toast } from '@ionic-native/toast';
import { SettingsPageModule } from '../pages/settings/settings.module';
import { GovtorderPageModule } from '../pages/govtorder/govtorder.module';
import { SearchPageModule } from '../pages/search/search.module';
import { SearchbarPageModule } from '../pages/searchbar/searchbar.module';
//import { DetailPageModule } from '../pages/detail/detail.module';
import { GosearchPageModule } from '../pages/gosearch/gosearch.module';
import { InfoPageModule } from '../pages/info/info.module';
import { VerificationResultPageModule } from "../pages/verification-result/verification-result.module";
import { VerificationPageModule } from "../pages/verification/verification.module";
import { DownloadPageModule } from '../pages/download/download.module';
import { OfflinePageModule } from '../pages/offline/offline.module';
//import { CloudSettings, CloudModule } from '@ionic/cloud-angular';
import { LoginPageModule } from '../pages/login/login.module';
import { GlobalProvider } from '../providers/global/global';
import { GoserviceProvider } from '../providers/goservice/goservice';
//import { ElectionServiceProvider } from '../providers/election-service/election-service';
//import { AppPreferences } from '@ionic-native/app-preferences';
import { Sim } from '@ionic-native/sim';
import { BrowserTab } from '@ionic-native/browser-tab';
import { Network } from '@ionic-native/network';
import { NativePageTransitions } from '@ionic-native/native-page-transitions';
import {AboutModalComponent} from '../components/about/about-modal.component';
import { InAppBrowser } from '@ionic-native/in-app-browser';
import { SharePageModule } from '../pages/share/share.module';
import { SocialSharing } from '@ionic-native/social-sharing';
import { MenuProvider } from '../providers/menu/menu';
import { DatabaseProvider } from '../providers/database/database';
import { LbsettingsPageModule } from '../pages/lbsettings/lbsettings.module';
import { CrsearchPageModule } from '../pages/crsearch/crsearch.module';
import { CrsearchviewPageModule } from '../pages/crsearchview/crsearchview.module';
import { OnlineservicePageModule } from '../pages/onlineservice/onlineservice.module';
import { DNS } from '@ionic-native/dns';
import {ProgressBarModule} from "angular-progress-bar"
//Property Tax
import {PayPage} from '../pages/pay/pay';
import { PropertyProvider } from '../providers/property/property';
import { PropertyTaxSettingsPageModule } from "../pages/PropertyTaxsettings/PropertyTaxSettings.module";
import { PropertyTaxPage } from '../pages/property-tax/property-tax';
import { PaymentReceiptPage } from '../pages/payment-receipt/payment-receipt';
//import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { HttpClientModule } from '@angular/common/http';
import{ Device } from '@ionic-native/device';
import { File } from '@ionic-native/file';
import{ FileOpener } from '@ionic-native/file-opener';
//Cr Certificate
import { CrDataProvider } from '../providers/cr-data/cr-data';
import { CrSelectRegTypePage } from '../pages/crSelectRegType/crSelectRegType';
import { CrSearchFormPage } from '../pages/crSearchForm/crSearchForm';
//Ends
import { OwnershipCertificatePage } from '../pages/ownership-certificate/ownership-certificate';
import {OwnershipCertificateProcessingPage} from '../pages/ownership-certificate-processing/ownership-certificate-processing';
import { IonicStorageModule } from '@ionic/storage';
import { CertificateProvider } from '../providers/certificate/certificate';
import { StatusProvider } from '../providers/status/status';
// Add interceptor
//import { RequestInterceptor } from '../common/interceptor/request.interceptor';
import { BuildingPermitstatusPage } from '../pages/building-permitstatus/building-permitstatus';
import {NoticePage } from '../pages/notice/notice';
import { DatePipe } from '@angular/common';
import { GramasabhaPage } from '../pages/gramasabha/gramasabha';
@NgModule({
declarations: [
MyApp,
HomePage,
//property tax
PropertyTaxPage,
PayPage,
PaymentReceiptPage,
//ends
AboutModalComponent,
//CR
CrSelectRegTypePage,
CrSearchFormPage,
OwnershipCertificatePage,
OwnershipCertificateProcessingPage,
BuildingPermitstatusPage,
NoticePage,
GramasabhaPage
],
imports: [
BrowserModule,HttpModule,AboutPageModule,ContactPageModule,TabsPageModule,ProgressBarModule,
WelcomePageModule,LocalbodyListPageModule,
DownloadPageModule,OfflinePageModule,SettingsPageModule,
InfoPageModule,VerificationPageModule,VerificationResultPageModule,
GovtorderPageModule,SearchPageModule,SearchbarPageModule,
GosearchPageModule,LoginPageModule,SharePageModule,
,LbsettingsPageModule,CrsearchPageModule,CrsearchviewPageModule,OnlineservicePageModule,
//Property tax
HttpClientModule,
PropertyTaxSettingsPageModule,
//Ends
IonicModule.forRoot(MyApp, {
backButtonText: '',
iconMode: 'ios',
modalEnter: 'modal-slide-in',
modalLeave: 'modal-slide-out',
tabsPlacement: 'bottom',
pageTransition: 'ios',
}),
IonicStorageModule.forRoot()
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage,AboutModalComponent,
//Property Tax
PropertyTaxPage,
PayPage,
PaymentReceiptPage,
//Ends
CrSelectRegTypePage ,
CrSearchFormPage,
OwnershipCertificatePage,
OwnershipCertificateProcessingPage,
BuildingPermitstatusPage,
NoticePage,
GramasabhaPage
],
providers: [
//AppPreferences,
StatusBar,Sim,BrowserTab,Network,NativePageTransitions,InAppBrowser,
SplashScreen,Toast,
{provide: ErrorHandler, useClass: IonicErrorHandler},
// { provide: HTTP_INTERCEPTORS, useClass: RequestInterceptor, multi: true },
GlobalProvider,GoserviceProvider,SocialSharing,
MenuProvider,DatabaseProvider,DNS,
//property tax
PropertyProvider,
Device,
File,
FileOpener,
//Ends
//CR Data
CrDataProvider,
CertificateProvider,
StatusProvider,
//Ends
DatePipe
]
})
export class AppModule {}
any body advise whats the problem is ?
Waiting fast reply
Thanks
Anes