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
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When trying to load an .svg into the MatIconRegistry without including the provideHttpClient provider, the error message printed to the console will be:
Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.
This error message is misleading, as the method for correcting the issue is to use the provider provideHttpClient as described by the depreciated comment on the HttpClientModule.
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When trying to load an .svg into the MatIconRegistry without including the provideHttpClient provider, the error message printed to the console will be:
This error message is misleading, as the method for correcting the issue is to use the provider provideHttpClient as described by the depreciated comment on the HttpClientModule.
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-blslak
Steps to reproduce:
Expected Behavior
The error message refers to provideHttpClient() as the proper solution to the issue.
Actual Behavior
The error message refers to a deprecated feature which is inconsistent with other documentation of the MatIconRegistry.
Environment
The text was updated successfully, but these errors were encountered: