Hi,
I tried to update my app using Ionic2. I worked with Ionic serve but when I tried to build android, I got an error below:
ngc: 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 (position 19:13 in the original .ts file), resolving symbol CommunitiesPage
My app.module.ts looks like:
var APP_PAGES = [BlogPage,CommunitiesPage]
@NgModule({
declarations: [
APP_PAGES
],
import: [someModule],
})
export class AppModule {}
I tried creating “export function” like that:
export function appPageFactory(){
return APP_PAGES;
}
@NgModule({
declarations: [
appPageFactory()
],
import: [someModule],
})
export class AppModule {}
But I got always the same error.
Can anyone help me please?