can me understand why getting , many more errors of kind? link github key code snippets below. think have basic misunderstanding of how dependency , "include" chaining works. thanks!
csvproc(master)> tsc node_modules/typescript/bin/lib.core.d.ts(83,5): error ts2300: duplicate identifier 'configurable'. node_modules/typescript/bin/lib.core.d.ts(84,5): error ts2300: duplicate identifier 'enumerable'. node_modules/typescript/bin/lib.core.d.ts(85,5): error ts2300: duplicate identifier 'value'. node_modules/typescript/bin/lib.core.d.ts(86,5): error ts2300: duplicate identifier 'writable'. my tsconfig.json:
{ "compileroptions": { "module": "commonjs", "noimplicitany": false, "outdir": "built/", "sourcemap": true, "target": "es5" } } my tsd.json:
{ "version": "v4", "repo": "borisyankov/definitelytyped", "ref": "master", "path": "typings", "bundle": "typings/tsd.d.ts", "installed": { "node/node-0.10.d.ts": { "commit": "6387999eb899d0ba02d37dd8697647718caca230" }, "should/should.d.ts": { "commit": "e1182d56ccb192379eade6055d9ba3fb6a0bacc4" } } } my tsd.d.ts:
{ "version": "v4", "repo": "borisyankov/definitelytyped", "ref": "master", "path": "typings", "bundle": "typings/tsd.d.ts", "installed": { "node/node-0.10.d.ts": { "commit": "6387999eb899d0ba02d37dd8697647718caca230" }, "should/should.d.ts": { "commit": "e1182d56ccb192379eade6055d9ba3fb6a0bacc4" } } }
this because of combination of 2 things:
tsconfignot havingfilessection. http://www.typescriptlang.org/docs/handbook/tsconfig-json.html
if no "files" property present in tsconfig.json, compiler defaults including files in containing directory , subdirectories. when "files" property specified, files included.
- including
typescriptnpm dependency :node_modules/typescript/means oftypescriptgets included .... there implicitly includedlib.d.tsin project anyways (http://basarat.gitbooks.io/typescript/content/docs/types/lib.d.ts.html) , conflicting 1 ships npm version of typescript.
fix
either list files explicitly or have atom-typescript generate key : https://github.com/typestrong/atom-typescript/blob/master/docs/tsconfig.md#filesglob
Comments
Post a Comment