microsoft/Typedoc-Webpack-Plugin

Problems after configuration in webpack

mishasmaha opened this issue · 0 comments

after configure typedoc webpack plugin build failed with error:

'Promise' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later. 

tsconfig:

{
  "compileOnSave": false,
  "compilerOptions": {
    "module": "commonjs",
    "noImplicitAny": false,
    "noEmitOnError": true,
    "removeComments": false,
    "sourceMap": true,
    "target": "es5",
    "lib": [
      "es5",
      "dom",
      "es2015.promise",
      "es2015.symbol"
    ]
  },
  "exclude": [
    "node_modules",
    "wwwroot"
  ]
}