Rush Stackショップブログイベント
メインコンテンツへスキップ

ae-unresolved-link

"@link参照を解決できませんでした。"

注釈

これは、TSDocの宣言参照を解決できない場合に発生します。

たとえば、次の例でf1g1とタイプミスしたとします。

/**
* Some documentation that we want to inherit
*/
export function f1(): void {}

/**
* For more info, see {@link g2 | the f1 function}.
*/
export function f2(): void {}

// Warning: The @link reference could not be resolved: The package does not have an export "g2"

修正方法

参照を修正します。上記の例では、f2()のコメントを次のようにf1を参照するように修正します。

/**
* For more info, see {@link f1 | the f1 function}.
*/
export function f2(): void {}

参考資料