After Angular Material Migration from 14 to 15 this error appears:
Error: NG0300: Multiple components match node with tagname button: MatButton and MatIconButton
Ideas how this can be fixed?
After Angular Material Migration from 14 to 15 this error appears:
Error: NG0300: Multiple components match node with tagname button: MatButton and MatIconButton
Ideas how this can be fixed?
The reason was using mat-button and mat-icon-button on same element
<button [matMenuTriggerFor]="menu" mat-button mat-icon-button>
To resolve this just use only one.
This was my problem, I had both mat-icon-button
and mat-raised-button
on a single button.
<button mat-icon-button style="margin-top: 25px" mat-raised-button color="primary" >
When I removed mat-raised-button, its started working again. Thanks to the previous answer!