mat icon is not a known element with import mat-icon' code example
Example: 'mat-icon' is not a known element:
//In the app.module.ts
...
imports: [
...
MatIconModule,
],
//In the app.module.ts
...
imports: [
...
MatIconModule,
],