I installed typedoc:
npm install typedoc --save-dev
Then added typedocOptions into tsconfig.json:
{
"pileOnSave": false,
"pilerOptions": {
"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?
I installed typedoc:
npm install typedoc --save-dev
Then added typedocOptions into tsconfig.json:
{
"pileOnSave": false,
"pilerOptions": {
"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?
Share Improve this question asked Feb 12, 2021 at 14:23 mr_blondmr_blond 1,7303 gold badges27 silver badges58 bronze badges1 Answer
Reset to default 9The mode
option has been removed as of v0.20.0 as described in the release notes.
The full list of options can be seen in the documentation.
Related issue here