2016-10-18 33 views
0

包括node_modules後,出現錯誤tsc.exe退出,代碼爲2 我該如何解決此錯誤?構建錯誤tsc.exe用代碼2退出

我tscongfig.json是: -

{ 
    "compilerOptions": { 
    "target": "es5", 
    "module": "commonjs", 
    "moduleResolution": "node", 
    "sourceMap": true, 
    "emitDecoratorMetadata": true, 
    "experimentalDecorators": true, 
    "removeComments": false, 
    "noImplicitAny": false 
    } 
} 
+0

你能提供更多信息嗎?像,你的環境是什麼,什麼IDE,你的'tsconfig'文件,除了那個小錯誤信息之外的其他東西? –

回答

0

我已經改變Microsoft.TypeScript.targets文件解決了上述問題,我做了變化: -

<TypeScriptCompileBlocked Condition="'$(TypeScriptCompileBlocked)' == ''">true</TypeScriptCompileBlocked> 

通過默認是真的。 改變這個後,它正在建設中。

相關問題