generic type 'ModuleWithProviders<T>' requires 1 type argument(s) ng2 image views code example
Example: Generic type 'ModuleWithProviders' requires 1 type argument(s).
// Add in app.module.ts
declare module "@angular/core" {
interface ModuleWithProviders<T = any> {
ngModule: Type<T>;
providers?: Provider[];
}
}
// OR add in tsconfig.app.json
"skipLibCheck": true;
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": [],
"skipLibCheck": true
},
.....