Answers for "ERROR in src/app/app.module.ts(9,82): error TS2306: File 'C:/Users/amittj/Desktop/KM-PORTAL/node_modules/@angular/material/index.d.ts' is not a module."

2

@angular/material/index.d.ts

It is changed in updated version of angular i think.
To resolve this issue you need to downgrade the angular/material version

Try to update the angular material (@angular/[email protected]) of this version.

npm uninstall -g @angular/material
npm cache clean --force

npm install -g @angular/material@7
Posted by: Guest on April-09-2020

Code answers related to "ERROR in src/app/app.module.ts(9,82): error TS2306: File 'C:/Users/amittj/Desktop/KM-PORTAL/node_modules/@angular/material/index.d.ts' is not a module."

Browse Popular Code Answers by Language