search

Home  >  Q&A  >  body text

node.js - webpack typescript2.x 出现Duplicate identifier错误

PHP中文网PHP中文网2786 days ago398

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 15:44:02

    Solved
    Modify 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 }
    }
    

    reply
    0
  • Cancelreply