Closed
Description
Search terms
LinkResolverPlugin, kindOf, unexpected error
Expected Behavior
My typedoc compiled fine on version 0.25.4, and I expected it to continue to work with 0.25.5.
Actual Behavior
When upgrading typedoc to 0.25.5, it now crashes with the following message:
TypeDoc exiting with unexpected error:
TypeError: Cannot read properties of undefined (reading 'kindOf')
at /.../node_modules/typedoc/dist/lib/models/types.js:687:63
at Array.find (<anonymous>)
at get reflection [as reflection] (/.../node_modules/typedoc/dist/lib/models/types.js:687:43)
at _classThis.resolveLinks (/.../node_modules/typedoc/dist/lib/converter/plugins/LinkResolverPlugin.js:102:27)
at _classThis.onResolve (/.../node_modules/typedoc/dist/lib/converter/plugins/LinkResolverPlugin.js:85:18)
at triggerEvents (/.../node_modules/typedoc/dist/lib/utils/events.js:191:43)
at triggerApi (/.../node_modules/typedoc/dist/lib/utils/events.js:167:13)
at eventsApi (/.../node_modules/typedoc/dist/lib/utils/events.js:60:18)
at _classThis.trigger (/.../node_modules/typedoc/dist/lib/utils/events.js:389:13)
at _classThis.resolve (/.../node_modules/typedoc/dist/lib/converter/converter.js:335:18)
The same is true for higher versions, like 0.25.7.
Steps to reproduce the bug
Upgrade from version <= 0.25.4 to version >= 0.25.5, and rerun.
In case it is useful, in version <= 0.25.4 we get warnings to the effect of X, defined in /.../example.ts, is referenced by Y but not included in the documentation.
Perhaps these are causing an issue in the newer versions of TypeDoc?
I'm sorry I can't provide any more information. Our project is reasonably large (and private). I'm hoping you can identify the issue by figuring out what changed between 0.25.4 and 0.25.5.
Environment
- Typedoc version: 0.25.5
- TypeScript version: 5.3.3
- Node.js version: 20.11.0
- OS: Ubuntu 22.04
Metadata
Metadata
Assignees
Labels
No labels