Skip to content

TypeDoc exiting with unexpected error: intersectionConverter.convertType missing map #2011

@apowers313

Description

@apowers313

Search terms

  • TypeError: Cannot read properties of undefined (reading 'map')
  • intersectionConverter
  • convertType
  • undefined map

Expected Behavior

Expected that typing typedoc from the CLI would generate documentation.

Actual Behavior

typedoc with this config throws the following error:

TypeDoc exiting with unexpected error:
TypeError: Cannot read properties of undefined (reading 'map')
at Object.convertType (/Users/ampower/Projects/personal/dataflow/node_modules/typedoc/dist/lib/converter/types.js:250:57)
at convertType (/Users/ampower/Projects/personal/dataflow/node_modules/typedoc/dist/lib/converter/types.js:96:34)
at /Users/ampower/Projects/personal/dataflow/node_modules/typedoc/dist/lib/converter/types.js:250:71
at Array.map ()
at Object.convertType (/Users/ampower/Projects/personal/dataflow/node_modules/typedoc/dist/lib/converter/types.js:250:57)
at convertType (/Users/ampower/Projects/personal/dataflow/node_modules/typedoc/dist/lib/converter/types.js:96:34)
at /Users/ampower/Projects/personal/dataflow/node_modules/typedoc/dist/lib/converter/types.js:404:109
at Array.map ()
at Object.convertType (/Users/ampower/Projects/personal/dataflow/node_modules/typedoc/dist/lib/converter/types.js:404:96)
at convertType (/Users/ampower/Projects/personal/dataflow/node_modules/typedoc/dist/lib/converter/types.js:96:34)

The error seems to be related Readable.ts file which implements the TypeScript mixin pattern. Looking at the thrown error, it seems that intersectionConverter.convertType() chokes that types doesn't contain a map. I don't see anything particularly esoteric about the types in the file that would lead to this.

Steps to reproduce the bug

Still working on a minimal reproduction. Will post when I manage to pull apart the code and still reproduce the bug.

Environment

  • Typedoc version: 0.23.8
  • TypeScript version: 4.7.4
  • Node.js version: v17.4.0
  • OS: MacOS Monterey 12.3.1

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