generic type 'modulewithproviders t ' requires 1 type argument(s static forroot modulewithproviders) 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
},
.....