December 15, 2020 - Fix for Error (import { MatInputModule } from '@angular/material' showing error)


Tue Dec 15 2020 17:13:49 GMT+0000 (Coordinated Universal Time)

Saved by @dedicatedking #nodejs,angular

import { MatDialogModule } from "@angular/material";
 Save has now changed to

import { MatDialogModule } from "@angular/material/dialog";

You have to reference the actual module inside the material folder:

ACTUAL ERROR: Error: node_modules/@angular/material/input/input-module.d.ts:8:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class. This likely means that the library (@angular/material/input) which declares MatInputModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy. 8 export declare class MatInputModule { ~~~~~~~~~~~~~~ import { MatInputModule } from '@angular/material' showing error SOLUTION: You