Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
Even-Lau opened this issue Oct 27, 2021 · 2 comments

Comments

@Even-Lau
Copy link

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' requires 1 type argument(s).

8 static forRoot(): ModuleWithProviders;

@shishenbaiye
Copy link

change ModuleWithProviders to ModuleWithProviders<T = any>

@diyews
Copy link

diyews commented Oct 27, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants