Ich habe ein Dummy-Basisprojekt in VS2015 Community Update 3, Version 14.0.25424.00 erstellt. (Mit diesem großen Tutorial: aspnet-core-web-api-angularjs-2).VS2015: Hinzufügen von "watch": true zu tsconfig.json verursacht JsErrorScriptException (0x30001)
Dieses Angular-2-Projekt enthält einige .ts-Dateien.
Das Problem:
statt („kompiliert“) transpiled wird jedes Mal JS-Dateien eine Datei gespeichert wird, die .ts Dateien einmal und nur bei BUILD Zeit des transpiled wird SERVER-SIDE-Projekt. (Klicken Sie im Visual Studio auf F5).
ich es googeln und fand heraus, dass ich hinzufügen sollte "sehen": true zum tsconfig.json Datei:
{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "system",
"moduleResolution": "node",
"watch": true
},
"exclude": [
"node_modules",
"wwwroot/lib"
]
}
aber jetzt bin ich einen Fehler bei BUILD Zeit bekommen: Error ‚JsErrorScriptException (0x30001) '. ASPNETCoreAngular2Demo C: \ Visual Studio 2015 \ Projects \ ASPNETCoreAngular2Demo \ src \ ASPNETCoreAngular2Demo \ Unknown Ausgabe 1
Nach this Post, die Lösung in VS2015 Update 2 ist auf die TSconfig-Datei hinzuzufügen:
"compileOnSave": true
jedoch , das hat in meiner Update 3-Version nicht funktioniert.
Vom cmd Ich laufe folgendes:
>tsc -v Version 1.0.3.0
Was ich denke, ist ziemlich alt, aber ich weiß nicht, wie es zu aktualisieren, da läuft:
>npm install -g [email protected]* --save
hat die aktuelle Version nicht geändert.
Was schlagen Sie vor? Ich bin verzweifelt ..
TNX,