jvandemo / jvandemo/generator-angular2-library
Duplicate identifier 'export='.
- Dominant language
- JavaScript
- Stars
- 740
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
Hi there, this is my first time write a library for the community.
But I get this error while compiling in my project.
```
ERROR in /Users/crossrt/www/konnected-steps/node_modules/@types/jquery/index.d.ts (3779,5): Duplicate identifier 'export='.
ERROR in /Users/crossrt/www/konnected-steps/node_modules/ng2-validation-message/node_modules/@types/jquery/index.d.ts (745,5): Duplicate string index signature.
ERROR in /Users/crossrt/www/konnected-steps/node_modules/ng2-validation-message/node_modules/@types/jquery/index.d.ts (3350,5): Duplicate string index signature.
ERROR in /Users/crossrt/www/konnected-steps/node_modules/ng2-validation-message/node_modules/@types/jquery/index.d.ts (3351,5): Duplicate number index signature.
ERROR in /Users/crossrt/www/konnected-steps/node_modules/ng2-validation-message/node_modules/@types/jquery/index.d.ts (3779,5): Duplicate identifier 'export='.
ERROR in Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol NgModule in /Users/crossrt/www/konnected-steps/node_modules/ng2-validation-message/node_modules/@angular/core/core.d.ts, resolving symbol Ng2ValidationMessage in /Users/crossrt/www/konnected-steps/node_modules/ng2-validation-message/index.ts, resolving symbol Ng2ValidationMessage in /Users/crossrt/www/konnected-steps/node_modules/ng2-validation-message/index.ts
```
I guess this is due to my project and library already installed with jquery type, which causes both project conflict.
Any idea to solve this problem?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by comparing the two @types/jquery/index.d.ts copies named in the compiler output and inspect ng2-validation-message/index.ts together with @angular/core/core.d.ts. Reproduce the compilation failure, then verify that the generated library no longer produces the duplicate declaration and static symbol-resolution errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, javascript, jquery
- Domain
- build-system, developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100