Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular Material Migration to 15 - MatButton and MatIconButton

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?

like image 743
Juri Avatar asked Apr 15 '26 15:04

Juri


1 Answers

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.

like image 148
Juri Avatar answered Apr 17 '26 12:04

Juri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!