{"action":"created","issue":{"url":"https://api.github.com/repos/dimpu/ngx-md/issues/124","repository_url":"https://api.github.com/repos/dimpu/ngx-md","labels_url":"https://api.github.com/repos/dimpu/ngx-md/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/dimpu/ngx-md/issues/124/comments","events_url":"https://api.github.com/repos/dimpu/ngx-md/issues/124/events","html_url":"https://github.com/dimpu/ngx-md/issues/124","id":291326891,"number":124,"title":"Lazy modules and interceptor","user":{"login":"Dockdep","id":6987304,"avatar_url":"https://avatars2.githubusercontent.com/u/6987304?v=4","gravatar_id":"","url":"https://api.github.com/users/Dockdep","html_url":"https://github.com/Dockdep","followers_url":"https://api.github.com/users/Dockdep/followers","following_url":"https://api.github.com/users/Dockdep/following{/other_user}","gists_url":"https://api.github.com/users/Dockdep/gists{/gist_id}","starred_url":"https://api.github.com/users/Dockdep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dockdep/subscriptions","organizations_url":"https://api.github.com/users/Dockdep/orgs","repos_url":"https://api.github.com/users/Dockdep/repos","events_url":"https://api.github.com/users/Dockdep/events{/privacy}","received_events_url":"https://api.github.com/users/Dockdep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-24T19:15:58Z","updated_at":"2018-02-02T04:16:17Z","closed_at":null,"author_association":"NONE","body":"Hello, I have some problems in my project with ngx-md. I use it in lazy module, and when I imported it, all http interceptors what was included in this module from parents modules stop working, when I inject interceptors in lazy module directly everything goes fine. Any ideas?"},"comment":{"url":"https://api.github.com/repos/dimpu/ngx-md/issues/comments/362481660","html_url":"https://github.com/dimpu/ngx-md/issues/124#issuecomment-362481660","issue_url":"https://api.github.com/repos/dimpu/ngx-md/issues/124","id":362481660,"user":{"login":"bassoGeorge","id":7047661,"avatar_url":"https://avatars2.githubusercontent.com/u/7047661?v=4","gravatar_id":"","url":"https://api.github.com/users/bassoGeorge","html_url":"https://github.com/bassoGeorge","followers_url":"https://api.github.com/users/bassoGeorge/followers","following_url":"https://api.github.com/users/bassoGeorge/following{/other_user}","gists_url":"https://api.github.com/users/bassoGeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/bassoGeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassoGeorge/subscriptions","organizations_url":"https://api.github.com/users/bassoGeorge/orgs","repos_url":"https://api.github.com/users/bassoGeorge/repos","events_url":"https://api.github.com/users/bassoGeorge/events{/privacy}","received_events_url":"https://api.github.com/users/bassoGeorge/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T04:16:17Z","updated_at":"2018-02-02T04:16:17Z","author_association":"NONE","body":"Okay, so apparently this is a known issue with HttpClientModule. You should only import it once in a project. Importing it within a lazy module or dependency of a lazy module plays havoc with HTTP_INTERCEPTORS token. The correct solution would be to import CommonModule and HttpClientModule *only if it is not already imported*. How to do that might be tricky. In the meanwhile, I'll just fork this and remove the imports and exports of these modules. Works in that situation"}}
{"actor":{"display_login":"bassoGeorge"}}