App.module.ts
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule} from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule} from 'ionic-angular';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { ApiProvider } from '../providers/api/api';
import {LoginPage} from "../pages/login/login";
import { UserProvider } from '../providers/user/user';
import {HttpClientModule} from "@angular/common/http";
import { EventosProvider } from '../providers/eventos/eventos';
import {RegisterUserPage} from "../pages/register-user/register-user";
import {BrMaskerModule} from "brmasker-ionic-3";
import {EventPage} from "../pages/event/event";
import {IonicStorageModule} from "@ionic/storage";
import {SearchUserPage} from "../pages/search-user/search-user";
import { CartProvider } from '../providers/cart/cart';
import { IngressoProvider } from '../providers/ingresso/ingresso';
import {CartPage} from "../pages/cart/cart";
import {EditPerfilPage} from "../pages/edit-perfil/edit-perfil";
import {CartButtonPage} from "../pages/cart-button/cart-button";
import {SucessCartPage} from "../pages/sucess-cart/sucess-cart";
import {ChamadaPage} from "../pages/chamada/chamada";
import {SucessChamadaPage} from "../pages/sucess-chamada/sucess-chamada";
import {PedidosPage} from "../pages/pedidos/pedidos";
import {PedidosDetalhesPage} from "../pages/pedidos-detalhes/pedidos-detalhes";
import {TabsPage} from "../pages/tabs/tabs";
import {EspetaculoPage} from "../pages/espetaculo/espetaculo";
import {PerfilPage} from "../pages/perfil/perfil";
import {LoginRequiredPage} from "../pages/login-required/login-required";
import {IngressosPage} from "../pages/ingressos/ingressos";
import {FavoritosPage} from "../pages/favoritos/favoritos";
import {AlterPasswordPage} from "../pages/alter-password/alter-password";
import {Camera} from "@ionic-native/camera";
import { CameraProvider } from '../providers/camera/camera';
import {FilterEventsPage} from "../pages/filter-events/filter-events";
import {SearchEventsPage} from "../pages/search-events/search-events";
import {SplashScreen} from "@ionic-native/splash-screen";
import {StatusBar} from "@ionic-native/status-bar";
import {IndicarAplicativoPage} from "../pages/indicar-aplicativo/indicar-aplicativo";
import {ValidatorsModule} from "../validators/validators.module";
import {ErrorHandlerService} from "../providers/error-handler-service";
import {SelectSearchableModule} from "ionic-select-searchable";
import {Facebook} from "@ionic-native/facebook";
import {SocialSharing} from "@ionic-native/social-sharing";
import {Base64} from "@ionic-native/base64";
import {MercadopagoPage} from "../pages/mercadopago/mercadopago";
import {IonicSelectableModule} from "ionic-selectable";
import {AgrupadoPage} from "../pages/agrupado/agrupado";
import { NgxQRCodeModule} from "ngx-qrcode2";
import {BarcodeScanner} from "@ionic-native/barcode-scanner";
// import {ScrollHideDirective} from "../services/scroll-hide";
import {SplashPage} from "../pages/splash/splash";
@NgModule({
declarations: [
// MyApp,
// HomePage,
// ScrollHideDirective
// LoginPage,
// RegisterUserPage,
// EventPage,
// SearchUserPage,
// CartPage,
// EditPerfilPage,
// CartButtonPage,
// SucessCartPage,
// ChamadaPage,
// SucessChamadaPage,
// PedidosPage,
// PedidosDetalhesPage,
// TabsPage,
// AgrupadoPage,
// EspetaculoPage,
// PerfilPage,
// LoginRequiredPage,
// IngressosPage,
// FavoritosPage,
// AlterPasswordPage,
// SearchEventsPage,
// FilterEventsPage,
// IndicarAplicativoPage,
// MercadopagoPage,
],
imports: [
NgxQRCodeModule,
FormsModule,
BrowserModule,
ValidatorsModule,
SelectSearchableModule,
IonicSelectableModule,
IonicModule.forRoot(MyApp,
{
scrollAssist:false,
autoFocusAssists:false
}),
HttpClientModule,
BrMaskerModule,
IonicStorageModule.forRoot({
name: 'Ecomerce',
storeName: 'usuario',
driverOrder: ['indexeddb']
})
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage,
LoginPage,
RegisterUserPage,
EventPage,
SearchUserPage,
CartPage,
EditPerfilPage,
CartButtonPage,
SucessCartPage,
ChamadaPage,
SucessChamadaPage,
PedidosPage,
PedidosDetalhesPage,
TabsPage,
AgrupadoPage,
EspetaculoPage,
PerfilPage,
LoginRequiredPage,
IngressosPage,
FavoritosPage,
AlterPasswordPage,
SearchEventsPage,
FilterEventsPage,
IndicarAplicativoPage,
MercadopagoPage,
],
providers: [
Camera,
BarcodeScanner,
StatusBar,
SplashScreen,
{provide: ErrorHandlerService, useClass: IonicErrorHandler},
ApiProvider,
UserProvider,
EventosProvider,
CartProvider,
IngressoProvider,
CameraProvider,
Facebook,
SocialSharing,
Base64,
]
})
export class AppModule {}
When i was building in prod, i receive this error.