大家好,我在stackoverflow上经历了所有解决方案.但对我来说没有任何工作.因此发布问题. tsconfig.json
{
"version":"2.13.0",
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": true,
"noImplicitAny": false
},
"exclude": [
"node_modules"
]
}
Run Code Online (Sandbox Code Playgroud)
的package.json
{
"name": "anguapp",
"version": "1.0.0",
"description": "Angular2 Gulp Typescript and Express",
"main": "dist/server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "gulp build"
},
"keywords": [],
"author": "UK",
"license": "MIT",
"dependencies": {
"angular2": "2.0.0-beta.17",
"es6-promise": "3.2.1",
"es6-shim": "0.35.1",
"body-parser":"1.15.2",
"express": "4.13.3",
"gulp-concat": "2.6.0",
"reflect-metadata": "0.1.8",
"rxjs": "5.0.0-beta.6",
"systemjs": "0.19.37", …Run Code Online (Sandbox Code Playgroud)