[英]Typedoc Error: Tried to set an option (mode) that was not declared
I installed typedoc:我安装了typedoc:
npm install typedoc --save-dev
Then added typedocOptions into tsconfig.json:然后将 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"
}
}
Then I do:然后我做:
npx typedoc --out docs src/index.ts
And get the error:并得到错误:
Error: Tried to set an option (mode) that was not declared.
How do I solve it?我该如何解决?
The mode
option has been removed as of v0.20.0 as described in the release notes .从 v0.20.0 开始,
mode
选项已被删除,如发行说明中所述。 The full list of options can be seen in the documentation .完整的选项列表可以在文档中看到。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.