{"action":"created","issue":{"url":"https://api.github.com/repos/ngx-translate/core/issues/878","repository_url":"https://api.github.com/repos/ngx-translate/core","labels_url":"https://api.github.com/repos/ngx-translate/core/issues/878/labels{/name}","comments_url":"https://api.github.com/repos/ngx-translate/core/issues/878/comments","events_url":"https://api.github.com/repos/ngx-translate/core/issues/878/events","html_url":"https://github.com/ngx-translate/core/issues/878","id":335391426,"node_id":"MDU6SXNzdWUzMzUzOTE0MjY=","number":878,"title":"Function calls are not supported in decorators but 'TranslateModule' was called","user":{"login":"wisespace-io","id":18601893,"node_id":"MDQ6VXNlcjE4NjAxODkz","avatar_url":"https://avatars0.githubusercontent.com/u/18601893?v=4","gravatar_id":"","url":"https://api.github.com/users/wisespace-io","html_url":"https://github.com/wisespace-io","followers_url":"https://api.github.com/users/wisespace-io/followers","following_url":"https://api.github.com/users/wisespace-io/following{/other_user}","gists_url":"https://api.github.com/users/wisespace-io/gists{/gist_id}","starred_url":"https://api.github.com/users/wisespace-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wisespace-io/subscriptions","organizations_url":"https://api.github.com/users/wisespace-io/orgs","repos_url":"https://api.github.com/users/wisespace-io/repos","events_url":"https://api.github.com/users/wisespace-io/events{/privacy}","received_events_url":"https://api.github.com/users/wisespace-io/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-25T12:46:01Z","updated_at":"2018-06-28T14:36:17Z","closed_at":null,"author_association":"NONE","body":"## Current behavior\r\nAfter migrate to Angular 6.0.8 and ngx-translate 10.0.2 I get the error: Function calls are not supported in decorators but 'TranslateModule' was called.\r\n\r\nI am using ngx-translate in a library. The only way of build the library now is if I don't call TranslateModule.forRoot()\r\n\r\n    @NgModule({\r\n        imports: [\r\n            BrowserModule,\r\n            TranslateModule.forRoot() // Error happens here, need to remove the forRoot()\r\n        ],\r\n        bootstrap: [AppComponent]\r\n    })\r\n    export class AppModule { }\r\n\r\n## Environment\r\n\r\nngx-translate version: 10.0.2\r\nAngular version: 6.0.8\r\nNode version: 10.5.0\r\nng-packagr: 2.4.2"},"comment":{"url":"https://api.github.com/repos/ngx-translate/core/issues/comments/401056975","html_url":"https://github.com/ngx-translate/core/issues/878#issuecomment-401056975","issue_url":"https://api.github.com/repos/ngx-translate/core/issues/878","id":401056975,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTA1Njk3NQ==","user":{"login":"IhorShmidt","id":16352598,"node_id":"MDQ6VXNlcjE2MzUyNTk4","avatar_url":"https://avatars3.githubusercontent.com/u/16352598?v=4","gravatar_id":"","url":"https://api.github.com/users/IhorShmidt","html_url":"https://github.com/IhorShmidt","followers_url":"https://api.github.com/users/IhorShmidt/followers","following_url":"https://api.github.com/users/IhorShmidt/following{/other_user}","gists_url":"https://api.github.com/users/IhorShmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/IhorShmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IhorShmidt/subscriptions","organizations_url":"https://api.github.com/users/IhorShmidt/orgs","repos_url":"https://api.github.com/users/IhorShmidt/repos","events_url":"https://api.github.com/users/IhorShmidt/events{/privacy}","received_events_url":"https://api.github.com/users/IhorShmidt/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T14:36:17Z","updated_at":"2018-06-28T14:36:17Z","author_association":"NONE","body":"Have the same issue, but I need to call \"forRoot\" method to use a loader, any ideas? "}}
{"actor":{"display_login":"IhorShmidt"}}