{"action":"opened","issue":{"url":"https://api.github.com/repos/mgechev/angular-seed/issues/1702","repository_url":"https://api.github.com/repos/mgechev/angular-seed","labels_url":"https://api.github.com/repos/mgechev/angular-seed/issues/1702/labels{/name}","comments_url":"https://api.github.com/repos/mgechev/angular-seed/issues/1702/comments","events_url":"https://api.github.com/repos/mgechev/angular-seed/issues/1702/events","html_url":"https://github.com/mgechev/angular-seed/issues/1702","id":194358712,"number":1702,"title":" Serve.prod.exp error on module when serving the app for AOT","user":{"login":"markoddi","id":4638598,"avatar_url":"https://avatars.githubusercontent.com/u/4638598?v=3","gravatar_id":"","url":"https://api.github.com/users/markoddi","html_url":"https://github.com/markoddi","followers_url":"https://api.github.com/users/markoddi/followers","following_url":"https://api.github.com/users/markoddi/following{/other_user}","gists_url":"https://api.github.com/users/markoddi/gists{/gist_id}","starred_url":"https://api.github.com/users/markoddi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markoddi/subscriptions","organizations_url":"https://api.github.com/users/markoddi/orgs","repos_url":"https://api.github.com/users/markoddi/repos","events_url":"https://api.github.com/users/markoddi/events{/privacy}","received_events_url":"https://api.github.com/users/markoddi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-08T15:05:15Z","updated_at":"2016-12-08T15:05:15Z","closed_at":null,"body":"When I run serve.prod.exp I get an issue for my module.\r\n\r\nIt doesnt seem to like this line of code in my module: **AgmCoreModule.forRoot();**\r\n\r\n**This is my module below:**\r\n\r\n```\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { FormsModule} from '@angular/forms';\r\n\r\nimport { AgmCoreModule } from 'angular2-google-maps/core';\r\n\r\n@NgModule({\r\n  imports: [CommonModule, RouterModule, FormsModule, AgmCoreModule.forRoot({apiKey: 'I've hidden my key'})],\r\n  declarations: [NewJobComponent],\r\n  exports: [NewJobComponent],\r\n  providers: []\r\n})\r\nexport class NewJobModule { }\r\n```\r\n\r\nDo I need to write this another way: AgmCoreModule.forRoot();\r\n\r\nI have added AgmCoreModule as a dependency in the project config. And this code seems to work fine for serve.prod. But I'm trying to get AOT working instead of JIT. It just doesnt work for serve.prod.exp\r\n\r\nI look forward to your responses."}}
{"actor":{"display_login":"markoddi"}}