element-angular
element-angular copied to clipboard
Generic type 'ModuleWithProviders<T>' requires 1 type argument(s) when tried to import Elmodule
Issue Type:
- [ ] Bug
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<T>' requires 1 type argument(s).
8 static forRoot(): ModuleWithProviders;
change ModuleWithProviders<T> to ModuleWithProviders<T = any>
都什么时候还用这个库呢,一堆bug