Closed magnattic closed 8 years ago
Here are instructions how to solve the Duplicate identifier
error http://blog.mgechev.com/2016/03/28/ambient-type-definitions-duplicate-identifier-typescript-fix/.
Thanks for the link. Unfortunately I don't see how that fixes my problem, as the tsconfig in seed (which I use) is already excluding node_modules
. But for some reason the definitions of /node_modules/angular2-highcharts/typings
still show up as duplicate identifiers. I googled that topic a lot before asking here, is it possible that angular2-highcharts screws this up by adding <reference ..>
in its dist
files and the exclude is ignored because of the import of those files through import { CHART_DIRECTIVES } from 'angular2-highcharts'
?
I could obviously add an exclude for the es6-shim and jasmine typings in my own typings folder (or just not generate them in the first place), but then wouldn't the problem occur when the next node_module uses one of those typings?
I am not sure if this is the fault of the external node module or something in seed, or just me using it wrong, but I keep running into duplicate identifier issues when trying to use libraries. Right now I cannot get angular2-highcharts to work with seed.
Steps to reproduce and a minimal demo of the problem
"angular2-highcharts": "^0.0.6"
Add
simple.chart.ts
undersrc/home/components/
:npm install
andnpm start
.Current behavior
During build.dev.js I get about 80 errors about jasmine and es6-shim typings looking like this:
The site starts, but the component will not work because it is not being properly compiled.
Expected/desired behavior
No errors and a working application. (obviously)