{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic-app-scripts/issues/113","repository_url":"https://api.github.com/repos/driftyco/ionic-app-scripts","labels_url":"https://api.github.com/repos/driftyco/ionic-app-scripts/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-app-scripts/issues/113/comments","events_url":"https://api.github.com/repos/driftyco/ionic-app-scripts/issues/113/events","html_url":"https://github.com/driftyco/ionic-app-scripts/issues/113","id":181588644,"number":113,"title":"ngc error with ng2-translate","user":{"login":"rajhub","id":3586797,"avatar_url":"https://avatars.githubusercontent.com/u/3586797?v=3","gravatar_id":"","url":"https://api.github.com/users/rajhub","html_url":"https://github.com/rajhub","followers_url":"https://api.github.com/users/rajhub/followers","following_url":"https://api.github.com/users/rajhub/following{/other_user}","gists_url":"https://api.github.com/users/rajhub/gists{/gist_id}","starred_url":"https://api.github.com/users/rajhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajhub/subscriptions","organizations_url":"https://api.github.com/users/rajhub/orgs","repos_url":"https://api.github.com/users/rajhub/repos","events_url":"https://api.github.com/users/rajhub/events{/privacy}","received_events_url":"https://api.github.com/users/rajhub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-07T05:33:33Z","updated_at":"2016-10-07T05:33:33Z","closed_at":null,"body":"I'm using ng2-translate for localization and the import section on app.module.ts is causing this problem:\r\n```\r\n  imports: [\r\n    CommonModule,\r\n    BrowserModule,\r\n    HttpModule,\r\n    FormsModule,\r\n    ReactiveFormsModule,\r\n    IonicModule.forRoot(MyApp),\r\n    AngularFireModule.initializeApp(Config.fbConfig),\r\n    TranslateModule.forRoot({\r\n      provide: TranslateLoader,\r\n      // this line below is causing trouble\r\n      useFactory: (http: Http) => new TranslateStaticLoader(http, 'assets/i18n', '.json'),       deps: [Http]\r\n    })\r\n  ]\r\n```\r\n\r\nI get this error:\r\n```\r\n[21:34:42]  ngc error: 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 83:19 in the original .ts file), resolving symbol AppModule in /Users/raj/Bitbucket/vk/vk-app/.tmp/app/app.module.ts\r\n    at simplifyInContext (/Users/raj/Bitbucket/vk/vk-app/node_modules/@angular/compiler-cli/src/static_reflector.js:469:23)\r\n    at StaticReflector.simplify (/Users/raj/Bitbucket/vk/vk-app/node_modules/@angular/compiler-cli/src/static_reflector.js:472:22)\r\n    at StaticReflector.annotations (/Users/raj/Bitbucket/vk/vk-app/node_modules/@angular/compiler-cli/src/static_reflector.js:61:36)\r\n    at _loop_1 (/Users/raj/Bitbucket/vk/vk-app/node_modules/@angular/compiler-cli/src/codegen.js:53:54)\r\n    at CodeGenerator.readFileMetadata (/Users/raj/Bitbucket/vk/vk-app/node_modules/@angular/compiler-cli/src/codegen.js:66:13)\r\n    at /Users/raj/Bitbucket/vk/vk-app/node_modules/@angular/compiler-cli/src/codegen.js:100:74\r\n    at Array.map (native)\r\n    at CodeGenerator.codegen (/Users/raj/Bitbucket/vk/vk-app/node_modules/@angular/compiler-cli/src/codegen.js:100:35)\r\n    at codegen (/Users/raj/Bitbucket/vk/vk-app/node_modules/@angular/compiler-cli/src/main.js:7:81)\r\n    at Object.main (/Users/raj/Bitbucket/vk/vk-app/node_modules/@angular/tsc-wrapped/src/main.js:30:16)\r\n\r\n\r\n[21:34:42]  ngc error: Compilation failed\r\n```\r\nI'm using the latest app-scripts"}}
{"actor":{"display_login":"rajhub"}}