Angular error - Generic type 'ModuleWithProviders' requires 1 type argument(s)

前端 未结 7 1212
旧巷少年郎
旧巷少年郎 2020-12-07 01:01

After upgrading from Angular version 8 to 10.

Running the - ng serve command gives me error -

ERROR in node_modules/ngx-tree-select/src/module.d.ts:11:56 - err

7条回答
  •  自闭症患者
    2020-12-07 01:11

    Just provide "unknown" as Type-Argument. I had the same issue and I solved it as in the following snippet

    export const routingModule: ModuleWithProviders = RouterModule.forRoot(
      routes
    );
    

提交回复
热议问题