Skip to content

TypeError: Cannot read property 'some' of undefined #1329

@gz65555

Description

@gz65555
function createReferenceReflection(context, source, target) {
    if (!(context.scope instanceof models_1.ContainerReflection)) {
        throw new Error('Cannot add reference to a non-container');
    }
    if (target.declarations.some(d => context.isOutsideDocumentation(d.getSourceFile().fileName))) {
        return;
...
}

I don't know when will be target.declaration === undefined. I have used typedoc-plugin-lerna-packages plugin. Would someone give me some information ?

Environment

  • Typedoc version: 0.16.11
  • TypeScript version: 3.7.5
  • Node.js version: v13.8.0
  • OS: mac os catalina

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