You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.
import InlineSVGModule in a lazy loaded module (I'm not sure it affects only lazy loaded ones), when HTTP_INTERCEPTORS are provided, and HttpClientModule is imported at a higher level (for example, in the root app module).
Issue
InlineSVGModule imports HttpClientModule. Doing so overwrites existing HTTP_INTERCEPTORS.
According to angular docs, HttpClientModule should be imported only in the root module of the application.
I know your module relies on HttpClientModule, but instead of importing it yourself, you should leave it to the users to import it, so this way HTTP_INTERCEPTORS won't be overwritten.
The text was updated successfully, but these errors were encountered:
Repro
import
InlineSVGModule
in a lazy loaded module (I'm not sure it affects only lazy loaded ones), whenHTTP_INTERCEPTORS
are provided, andHttpClientModule
is imported at a higher level (for example, in the root app module).Issue
InlineSVGModule
importsHttpClientModule
. Doing so overwrites existingHTTP_INTERCEPTORS
.According to angular docs,
HttpClientModule
should be imported only in the root module of the application.I know your module relies on
HttpClientModule
, but instead of importing it yourself, you should leave it to the users to import it, so this wayHTTP_INTERCEPTORS
won't be overwritten.The text was updated successfully, but these errors were encountered: