ElemeFE / element-angular

Element for Angular
https://element-angular.faas.ele.me
MIT License
530 stars 121 forks source link

Generic type 'ModuleWithProviders<T>' requires 1 type argument(s) when tried to import Elmodule #167

Open Even-Lau opened 3 years ago

Even-Lau commented 3 years ago

Issue Type:

Version & Environment:
Angular CLI: 12.2.11 Node: 14.17.3 Package Manager: npm 8.1.1 OS: darwin x64

Angular: 12.2.11

@angular-devkit/architect 0.1202.11 @angular-devkit/build-angular 12.2.11 @angular-devkit/core 12.2.11 @angular-devkit/schematics 12.2.11 @schematics/angular 12.2.11 rxjs 6.6.7 typescript 4.3.5

Description: Tried to import Elmodule in my project and got this error

Error: node_modules/element-angular/release/tooltip/module.d.ts:8:23 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).

8 static forRoot(): ModuleWithProviders;

shishenbaiye commented 3 years ago

change ModuleWithProviders to ModuleWithProviders<T = any>

diyews commented 3 years ago

都什么时候还用这个库呢,一堆bug