Rush Stack商店博客活动
跳至主要内容

ae-misplaced-package-tag

"The @packageDocumentation comment must appear at the top of entry point .d.ts file."*

备注

包含 @packageDocumentation 标签的文档注释必须作为入口点文件(由 mainEntryPointFilePath 设置指定)中的第一个注释出现。为防止错误,如果 API 提取器在其他位置找到包含 @packageDocumentation 标签的注释,它将报告 ae-misplaced-package-tag

如何修复

将注释移动到文件顶部。

在调查此问题时,最好检查入口点的 .d.ts 文件,而不是 .ts 文件。TypeScript 编译器可能会删除或重新排列在已发出的 .d.ts 文件中的注释块。

另请参见