typescript: error TS2693: 'Promise' only refers to a type, but is being used as a value here

将ts配置文件中 "target": "es2015"

{
    "compilerOptions": {
        "outDir": "./dist/",
        "sourceMap": false,
        "noImplicitAny": false,
        "module": "commonjs",
        "target": "es2015"
    },
    "include": [
        "src/**/*"
    ],
    "exclude": [
        "node_modules",
        "**/*.spec.ts"
    ]
}
posted @ 2017-07-12 13:11  douglasvegas  阅读(8959)  评论(0编辑  收藏  举报