recherche

Maison  >  Questions et réponses  >  le corps du texte

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

PHP中文网PHP中文网2786 Il y a quelques jours396

répondre à tous(1)je répondrai

  • 大家讲道理

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

    解决了
    修改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 }
    }
    

    répondre
    0
  • Annulerrépondre