-1

My Angular App is throwing 'mat-list' even though I have all the required imported modules. I have already deleted and reinstalled the node_modules folder etc. Are there some specific solutions, loading strategies that helps to ensure that the app doesn't throw this error?

I am specifically using Angular 12 with tsconfig and eslint

abigby
  • 11
  • 4

1 Answers1

-1

Have you tried importing the module inside app.module.ts file?

The import should look like this:

import {MatListModule} from '@angular/material/list'

I’m guessing you’re using Angular Material.

cernezan
  • 29
  • 4
  • this MatListModule should also be mentioned in the `imports: []` section of a module, where the component that is using – Andrei Nov 25 '21 at 19:14
  • I've imported the Angular Material Module into a shared module then import that shared module into the feature module that declares the component that is being used – abigby Nov 26 '21 at 04:11