This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 172
HttpClientModule Import (angular6) #393
Comments
Unfortunately importing of HttpClientModule will create second instance of HttpClient. So we can have a situation when module will just override HttpClient we defined in the AppModule, thus we are loosing all Interceptors defined in application. Removing of Ng2CompleterModule from project is solving problem with swiped interceptors. Please look on this issue from other component: |
I have same problem and because of that I cannot upgrade dependencies. @oferh what would you like to do with that? For me you should remove HttpClientModule dependencies and allow user to pass it to your library. |
dependency removed in |
3 tasks
2 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I upgraded my application to angular6 and use ng2-completer@next for compability.
I import Ng2CompleterModule in a Submodule. This overwrites my HTTP_INTERCEPTORS (from the root module) in the submodule.
From what I could gather from this issue: angular/angular#20575 you must not import HttpClientModule in the component.
The text was updated successfully, but these errors were encountered: