I have an Angular 2 project administered with npm and I recently ran
typings install dt~jquery --save --global
to add the JQuery type definition to my project.
npm then downloaded this type definition file to the directory node_modules as expected.
The problem is now that the Typescript compiler (using npm run tsc:w) complains:
$ npm run tsc:w
node_modules/@types/jquery/index.d.ts(3246,5): error TS2300: Duplicate identifier 'export='. typings/globals/jquery/index.d.ts(601,5): error TS2374: Duplicate string index signature. typings/globals/jquery/index.d.ts(2850,5): error TS2374: Duplicate string index signature. typings/globals/jquery/index.d.ts(2851,5): error TS2375: Duplicate number index signature. typings/globals/jquery/index.d.ts(3224,5): error TS2300: Duplicate identifier 'export='. 18:48:59 - Compilation complete. Watching for file changes.
Any ideas how to resolve this?