node.js - webpack typescript2.x 出现Duplicate identifier错误
PHP中文网
PHP中文网 2017-04-17 15:42:02
0
1
401
PHP中文网
PHP中文网

认证0级讲师

membalas semua(1)
大家讲道理

解决了
修改tsconfig.json

{
  "compilerOptions": {
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "module": "commonjs",
    "moduleResolution": "node",
    "outDir": "dist",
    "sourceMap": true,
    "sourceRoot": "src",
    "target": "es5",
    "types": [
      "node",
      "core-js",
      "express"
    ],
    "baseUrl": "."
  },
  "include": [
      "src/**/*"
  ],
  "exclude": [
    "node_modules",
    "dist"
  ],
  "awesomeTypescriptLoaderOptions": {
    "useWebpackText": true,
    "forkChecker": true
  },
  "compileOnSave": false,
  "buildOnSave": false,
  "atom": { "rewriteTsconfig": false }
}
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan