title: Angular error - Generic type 'ModuleWithProviders<T>' requires 1 type argument(s)
body: <p>After upgrading from Angular version 8 to 10.</p>
  <p>Running the - ng serve command gives me error -</p>
  <p>ERROR in node_modules/ngx-tree-select/src/module.d.ts:11:56 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).</p>
  <p>11     static forRoot(options: TreeSelectDefaultOptions): ModuleWithProviders;
  ~~~~~~~~~~~~~~~~~~~</p>
  <p>This is my file - fronent/webapp/node_modules/ngx-tree-select/src/module.d.ts</p>
  <pre><code>import { ModuleWithProviders } from '@angular/core';
  import { TreeSelectDefaultOptions } from './models/tree-select-default-options';
  import * as ɵngcc0 from '@angular/core';
  import * as ɵngcc1 from './components/tree-select.component';
  import * as ɵngcc2 from './components/tree-select-item.component';
  import * as ɵngcc3 from './directives/off-click.directive';
  import * as ɵngcc4 from './pipes/item.pipe';
  import * as ɵngcc5 from '@angular/common';
  import * as ɵngcc6 from '@angular/forms';
  export declare class NgxTreeSelectModule {
      static forRoot(options: TreeSelectDefaultOptions): ModuleWithProviders;
      static ɵmod: ɵngcc0.ɵɵNgModuleDefWithMeta&lt;NgxTreeSelectModule, [typeof ɵngcc1.TreeSelectComponent, typeof ɵngcc2.TreeSelectItemComponent, typeof ɵngcc3.OffClickDirective, typeof ɵngcc4.ItemPipe], [typeof ɵngcc5.CommonModule, typeof ɵngcc6.FormsModule], [typeof ɵngcc1.TreeSelectComponent]&gt;;
      static ɵinj: ɵngcc0.ɵɵInjectorDef&lt;NgxTreeSelectModule&gt;;
  }
  
  //# sourceMappingURL=module.d.ts.map
  </code></pre>
  <p>Kindly view the image for the error.</p>
  <p><a href="https://i.stack.imgur.com/rzcl5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rzcl5.png" alt="enter image description here" /></a></p>