繁体   English   中英

Typedoc 错误:尝试设置未声明的选项(模式)

[英]Typedoc Error: Tried to set an option (mode) that was not declared

我安装了typedoc:

npm install typedoc --save-dev

然后将 typedocOptions 添加到 tsconfig.json 中:

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    // ...some lines there
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2018",
      "dom"
    ],
    "emitDecoratorMetadata": true
  },
  "angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "strictInjectionParameters": true
  },
  "typedocOptions": {
    "mode": "modules",
    "out": "docs"
  }
}

然后我做:

npx typedoc --out docs src/index.ts

并得到错误:

Error: Tried to set an option (mode) that was not declared.

我该如何解决?

从 v0.20.0 开始, mode选项已被删除,如发行说明中所述。 完整的选项列表可以在文档中看到。

相关问题在这里

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM