0

I am creating a table in angular using the following:

ng g @angular/material:material-table --name=studentEntries

It is imported in the corresponding places, but I get the following error:

1.If 'student-entries' is an Angular component, then verify that it is part 
of this module.
2. If 'student-entries' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' 
to the '@NgModule.schemas' of this component to suppress this message.

The code in app.module.ts is similar to:

@NgModule({
   imports: []
   declarations: [StudentEntries],
   providers: [],
   bootstrap: [AppComponent]
})
export class AppModule {} 

0 Answers0