This error means that you haven't added the MatTableModule
to your module's imports.
I did the same mistake. Added the MatTableModule solved mine problem too. ;)
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { FuseSharedModule } from '@fuse/shared.module';
import { FuseHighlightModule } from '@fuse/components';
import { QueriesComponent } from './queries.component';
import {MatTableModule} from '@angular/material/table';
const routes: Routes = [
{
path : 'queries',
component: QueriesComponent
}
];
@NgModule({
declarations: [QueriesComponent],
imports: [
CommonModule,
RouterModule.forChild(routes),
FuseSharedModule,
FuseHighlightModule,
MatTableModule
]
})
export class QueriesModule
{
}
Most helpful comment
This error means that you haven't added the MatTableModule to your module's imports.
still not working