Ionic rc2 build fails


#1

ionic serve works well but throws an error while building…

[13:36:53] Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider

** replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in**

** C:/Users/Owner/Desktop/UPWORK/near me/nearme-2.0.2/agora-rc2/.tmp/app/app.module.ts, resolving symbol**

** AppModule in C:/Users/Owner/Desktop/UPWORK/near me/nearme-2.0.2/agora-rc2/.tmp/app/app.module.ts**

[13:36:53] ngc failed

[13:36:53] ionic-app-script task: “build”

[13:36:53] Error: Error

This is my app.module.ts

import { NgModule , CUSTOM_ELEMENTS_SCHEMA} from ‘@angular/core’;
import { IonicApp, IonicModule } from ‘ionic-angular’;
import { MyApp } from ‘./app.component’;
import { Storage } from ‘@ionic/storage’;
//PAGES
import { AccountPage } from ‘…/pages/account/account’;
import { AddonPage } from ‘…/pages/addon/addon’;
import { AddPaymentPage } from ‘…/pages/addpayment/addpayment’;
import { BookingsPage } from ‘…/pages/bookings/bookings’;
import { CalendarPage } from ‘…/pages/calendar/calendar’;
import { ChangeEmail } from ‘…/pages/changeEmail/changeEmail’;
import { ChangePassword } from ‘…/pages/ChangePassword/ChangePassword’;
import { ConfirmPage } from ‘…/pages/confirm/confirm’;
import { CategoriesPage } from ‘…/pages/categories/categories’;
import { FavoritePage } from ‘…/pages/favorite/favorite’;
import { FinalPage } from ‘…/pages/final/final’;
import { LoginPage } from ‘…/pages/login/login’;
import { MainPage } from ‘…/pages/main/main’;
import { MenusPage } from ‘…/pages/menus/menus’;
import { PackagePage } from ‘…/pages/package/package’;
import { PaymentPage } from ‘…/pages/payment/payment’;
import { PlaceDetailPage } from ‘…/pages/place-detail/place-detail’;
import { ThankyouPage } from ‘…/pages/thankyou/thankyou’;
import { PlacesPage } from ‘…/pages/places/places’;

//Providers
import {AuthService } from '…/providers/auth-service/auth-service’
import {CalendarService } from '…/providers/calendar-service/calendar-service’
import {Data } from '…/providers/data/data’
import {Global} from '…/providers/global/global’
import {Request } from '…/providers/request/request’
import {TransactionService } from '…/providers/transaction-service/transaction-service’
import { MapService} from '…/providers/map-service/map-service’
import {UserService } from ‘…/providers/user-service/user-service’

// //mapsmodule
import { AgmCoreModule} from ‘angular2-google-maps/core’;
//directives
import { CloudSettings, CloudModule } from ‘@ionic/cloud-angular’;

const cloudSettings: CloudSettings = {
‘core’: {
‘app_id’: ‘c2218591’
}
};
const mapsSettings = {
apiKey: ‘AIzaSyDQXD7WEJd41kkACUDO-qDfYmRZQ8Zh70g’
};
const appSettings = {
iconMode: ‘ios’
};
@NgModule({
declarations: [
MyApp,
AccountPage, AddonPage, AddPaymentPage, BookingsPage, LoginPage,
CategoriesPage,CalendarPage, ConfirmPage,FavoritePage,MainPage,MenusPage, PaymentPage,PackagePage,
ThankyouPage, PlacesPage, PlaceDetailPage, ChangeEmail, ChangePassword, FinalPage
],
imports: [
IonicModule.forRoot(MyApp,appSettings),
AgmCoreModule.forRoot(mapsSettings),
CloudModule.forRoot(cloudSettings)
],
bootstrap: [IonicApp],
schemas: [ CUSTOM_ELEMENTS_SCHEMA ],
entryComponents: [
MyApp,
AccountPage, AddonPage, AddPaymentPage, BookingsPage, LoginPage,
CategoriesPage, CalendarPage, ConfirmPage,FavoritePage,MainPage,MenusPage, PaymentPage,PackagePage,
ThankyouPage, PlacesPage, PlaceDetailPage, ChangeEmail, ChangePassword, FinalPage
],
providers: [
AuthService,CalendarService, Data, Request, Global, TransactionService, MapService, UserService, Storage
],

})
export class AppModule {}