Skip to content

TypeError: Cannot read property 'flags' of undefined #298

Closed
@jrf0110

Description

@jrf0110

When I attempt to run the following code:

const { Application } = require('typedoc')
const app = new Application({ name: 'App' })

app.generateJson(['docs-entry.ts'], 'dist/docs.json')

I get the following Error:

typedoc/lib/converter/types/reference.js:26
        return !!(type.flags & 2588672);
                      ^

TypeError: Cannot read property 'flags' of undefined
    at ReferenceConverter.supportsNode (typedoc/lib/converter/types/reference.js:26:23)
    at Converter.convertType (typedoc/lib/converter/converter.js:127:31)
    at typedoc/lib/converter/nodes/class.js:47:63
    at Context.withScope (typedoc/lib/converter/context.js:99:9)
    at ClassConverter.convert (typedoc/lib/converter/nodes/class.js:35:17)
    at Converter.convertNode (typedoc/lib/converter/converter.js:117:53)
    at typedoc/lib/converter/nodes/block.js:71:33
    at Array.forEach (native)
    at BlockConverter.convertStatements (typedoc/lib/converter/nodes/block.js:69:29)
    at typedoc/lib/converter/nodes/block.js:55:27

Note: I am using Typescript 2.0.2

Any thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions