[英]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.
我该如何解决?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.