2016-10-17 19 views
0

Imは、次のエラーを取得して示していますtypescriptですコマンドは、私はtypesciptコマンドを実行したときにタイピングモジュールでエラー

tsc -p ./

ImはES6-シムおよび他のノードパッケージで

をこのエラーを取得します

enter image description here

以下は、私のpackage.jsonである

"scripts": { 
    "vscode:prepublish": "tsc -p ./", 
    "compile": "tsc -watch -p ./", 
    "postinstall": "node ./node_modules/vscode/bin/install" 
    }, 
"devDependencies": { 
    "typescript": "^2.0.3", 
    "vscode": "^1.0.0" 
    }, 
    "dependencies": { 
    "@types/es6-shim": "^0.31.32", 
    "@types/node": "^6.0.45", 
    "adm-zip": "^0.4.7", 
    "fs": "^0.0.2", 
    "github": "^2.6.0", 
    "ncp": "^2.0.0", 
    "node-watch": "0.4.0", 
    "open": "^0.0.5", 
    "rimraf": "^2.5.4", 
    "temp": "^0.8.3" 
    } 

TSCONFIG.json

{ 
    "compilerOptions": { 
     "module": "commonjs", 
     "target": "es6", 
     "outDir": "out", 
     "lib": [ 
      "es6" 
     ], 
     "sourceMap": true, 
     "rootDir": "." 
    }, 
    "exclude": [ 
     "node_modules", 
     ".vscode-test" 
    ] 
} 

答えて

0

私はtsconfig.json

ですでにES6を標的にされたように私はちょうどpackage.json

から"@types/es6-shim": "^0.31.32"を削除

関連する問題