tsc error when building locally, conflict with AngularJs typings
See original GitHub issueI’ve come across this because of a change in a typing from DefinitelyTyped to AngularJS LN1980. This new typing conflicts with source code presently in ng-metadata-src/core/directives/metadata-directives.
node_modules/ng-metadata/src/core/directives/metadata_directives.d.ts(16,15): error TS2314: Generic type 'IDirectiveCompileFn<TScope>' requires 1 type argument(s).
I actually import this module, ng-metadata/src/core/directives/metadata_directives
, so that I can use those decorator features to generate a component template. When two libraries conflict like this, TypeScript hasn’t really suggested a good solution for external conflicts 1 .
Although, I could swing a few ways for a solution, I believe the most appropriate resolution is to update this project’s typings.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
import declaration conflicts with local declaration of 'ng'
I had this error " import declaration conflicts with local declaration of 'ng' " in my Visual Studio 2015 solution where I used...
Read more >TS2440: Import declaration conflicts with local ... - GitHub
Hi Sir! Bug report I am getting following below error : ERROR in [at-loader] ./node_modules/protractor/built/index.d.ts:5:10 TS2440: Import ...
Read more >TypeScript configuration - Angular
Browsers can't execute TypeScript directly. Typescript must be "transpiled" into JavaScript using the tsc compiler, which requires some configuration. This page ...
Read more >Top 18 Most Common AngularJS Developer Mistakes - Toptal
Common Mistake #16: Not Running The Unit Tests In TDD Mode Tests will not make your code free of AngularJS error messages. What...
Read more >Building AngularJS application with TypeScript and Visual ...
Run npm install and observe that newly added packages are downloaded locally. Edit gulpfile.js : At the start of the file add: tsc...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So it does, that PR just didn’t do it for all of them…
I’ll submit a PR to DefinitelyTyped and link back here
Merged up and seems fixed, so am closing. Thanks again for the feedback @aciccarello!