Skip to content

TS link resolution doesn't work on first comment in file #2994

@Gerrit0

Description

@Gerrit0

Search terms

[warning] Failed to resolve link to "x" in comment for docs

Expected Behavior

/**
 * {@link x} <-- should be resolved with TS resolution
 * @packageDocumentation
 */

/** Required comment */
import { x } from "foo";

Actual Behavior

{@link x} fails to be resolved with TS link resolution.

Steps to reproduce the bug

Create a file with two comments at the start of the file and observe that link resolution doesn't work as expected.

Environment

  • Typedoc version: 0.28.10
  • TypeScript version: 5.9.2
  • Node.js version: 20.10
  • OS: Fedora

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