Skip to content

plugin-gantt README 教的 ganttComponents 手动注册与 GanttSchema 类型都不存在 #5012

Description

@yinlianghui

发现于 #5002 的实施(plugin-map README 重写)。Filed unassigned, not claiming.

现象

packages/plugin-gantt/README.md 两处从本包名导入的标识符不存在:

README实际
:108import { ganttComponents } from '@object-ui/plugin-gantt' + :112Object.entries(ganttComponents).forEach(...)全包零命中。注册是 import 的副作用;真实导出在 src/index.tsx:18-53:83(ObjectGanttObjectGanttRendererGanttViewQuickFilterBarResourceWorkloadnormalizeDependencies …)。照抄即 Object.entries(undefined) 抛 TypeError。
:407import type { GanttSchema, GanttTask } from '@object-ui/plugin-gantt',:418const gantt: GanttSchema = {…}GanttTask 是真的(src/GanttView.tsx:139);GanttSchema 在本包、在 @object-ui/types 都不存在,是纯虚构的类型名。

同族

#5002mapComponents 在 plugin-map 上的同一段复制品。实施 #5002 时把 19 个 packages/plugin-*/README.md 的自包命名导入与各包真实导出面对了一遍,命中 8 个包:calendar(#5010)、form(#5011)、gantt(本单)、grid、view、dashboard、report。按 #5002 认领评论的裁定「兄弟 README 只查不改」,各包各立一单。

复核方式

grep -n "ganttComponents\|GanttSchema" packages/plugin-gantt/README.md
grep -rn "ganttComponents\|\bGanttSchema\b" packages/plugin-gantt/src # 零命中
grep -rn "GanttSchema" packages/types/src # 零命中

分级

交 PM 分诊。包内 README 的 API 断言今天没有门禁看得到。

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationpm:queue

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions