Skip to content

TypeDoc failing with Cannot read property 'kindOf' of undefined #1489

@dbartholomae

Description

@dbartholomae

Search terms

kindOf

Expected Behavior

Building documentation should work.

Actual Behavior

It fails:

> typedoc && touch docs/.nojekyll

Info: Loaded plugin typedoc-plugin-param-names
Info: Loaded plugin typedoc-plugin-sourcefile-url
TypeDoc exiting with unexpected error:
TypeError: Cannot read property 'kindOf' of undefined
    at /home/daniel/repos/jsx-md/node_modules/.pnpm/typedoc@0.20.16_typescript@4.0.2/node_modules/typedoc/dist/lib/converter/plugins/CommentPlugin.js:180:40
    at Array.filter (<anonymous>)
    at CommentPlugin.onBeginResolve (/home/daniel/repos/jsx-md/node_modules/.pnpm/typedoc@0.20.16_typescript@4.0.2/node_modules/typedoc/dist/lib/converter/plugins/CommentPlugin.js:180:14)
    at triggerEvents (/home/daniel/repos/jsx-md/node_modules/.pnpm/typedoc@0.20.16_typescript@4.0.2/node_modules/typedoc/dist/lib/utils/events.js:173:43)
    at triggerApi (/home/daniel/repos/jsx-md/node_modules/.pnpm/typedoc@0.20.16_typescript@4.0.2/node_modules/typedoc/dist/lib/utils/events.js:149:13)
    at eventsApi (/home/daniel/repos/jsx-md/node_modules/.pnpm/typedoc@0.20.16_typescript@4.0.2/node_modules/typedoc/dist/lib/utils/events.js:42:18)
    at Converter.trigger (/home/daniel/repos/jsx-md/node_modules/.pnpm/typedoc@0.20.16_typescript@4.0.2/node_modules/typedoc/dist/lib/utils/events.js:371:13)
    at Converter.resolve (/home/daniel/repos/jsx-md/node_modules/.pnpm/typedoc@0.20.16_typescript@4.0.2/node_modules/typedoc/dist/lib/converter/converter.js:197:14)
    at Converter.convert (/home/daniel/repos/jsx-md/node_modules/.pnpm/typedoc@0.20.16_typescript@4.0.2/node_modules/typedoc/dist/lib/converter/converter.js:44:14)
    at Application.convert (/home/daniel/repos/jsx-md/node_modules/.pnpm/typedoc@0.20.16_typescript@4.0.2/node_modules/typedoc/dist/lib/application.js:151:31)
 ERROR  Command failed with exit code 5.

Process finished with exit code 1

Steps to reproduce the bug

Issue is reproduced here:
https://github.com/dbartholomae/jsx-md/tree/demonstrate_typedoc_issue

It falis in 0.20.16, but 0.20.15 is still fine, so the regression happened in one of the following two commits:
d746d85
685ca41

Environment

  • Typedoc version: 0.20.16
  • TypeScript version: 4.0.2
  • Node.js version: 12.19.0
  • OS: WSL Ubuntu on Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions