Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#167 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
angular, typescript
Domain
frontend

Research direction

Start with node_modules/element-angular/release/tooltip/module.d.ts at line 8 and compare the declaration with the Angular 12.2.11 and TypeScript 4.3.5 versions reported. Reproduce the Elmodule import to confirm the TS2314 error, then verify that the import completes without this diagnostic.

Written by the indexing model from the issue text.

Description

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;

Dominant language
TypeScript
Stars
527
Forks
121
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ElemeFE/element-angular

All issues in ElemeFE/element-angular

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.