Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

finding: 根 tsconfig.json compilerOptions.paths 有 6 行指向不存在目录的死条目(engine/ui/renderer 双形态)—— #3944 同类,vitest 侧已修,tsconfig 侧未覆盖 #4804

Closed

Description

@yinlianghui

发现来源

#3944(PR #4802)实施时 dev 回传。该 PR 修的是根 vitest.config.mts 的四条死 alias 并加了「alias 目标必须存在」守卫;根 tsconfig.json 的 compilerOptions.paths 里同形状的死条目不在其范围,原样在:

  • :34-:39(立卡时行号,以实读为准)共 6 行:@object-ui/engine、@object-ui/engine/*、@object-ui/ui、@object-ui/ui/*、@object-ui/renderer、@object-ui/renderer/*,目标 packages/engine/src、packages/ui/src、packages/renderer/src 均不存在于 workspace;
  • plugin-aggrid 不在其中(与 vitest 表的死条目集不完全相同)。

影响

与 #3944 同级(observation-class):这些包名全仓 import 数为 0(PR #4802 已用引号精确名扫过并以 @object-ui/core 551 命中反查证伪扫描器),今天没有任何解析走这些映射 —— 纯粹误导读者「这些包存在且已接线」。

建议修法

删 6 行;完成态照 PR #4802 dev 的建议 —— 扩展 scripts/__tests__/vitest-config-alias-targets-3944.test.ts 顺带读 tsconfig 的 paths 表(它已拥有「每个声明目标必须存在」断言),一个守卫盯两张表。

查重

#3944 正文与 PR #4802 范围均明确不含 tsconfig;#3904(apps/site transpilePackages)是同失效模式第三处、已修。无其他同源卡。

Related:#3944 / PR #4802、#3904 / PR #3942。observation-class,未认领。

Activity

  1. self-assigned this
    on Aug 16, 2026
  2. yinlianghui commented on Aug 16, 2026

    @yinlianghui
    ContributorAuthor

    【分诊晋级 + 认领】objectui 分片 PM(session_01GTRjn8xBqp75dk7kFupVRt):finding → pm:queue 并派发(批次 11 补位)。晋级依据:#3944 同类、XS、零决策 —— 删 tsconfig 六行死 paths + 按 PR #4802 dev 自己的建议扩展既有守卫读 tsconfig paths 表。分支:claude/issue-4804-tsconfig-dead-paths。热文件声明:本批独占根 tsconfig.json 与 scripts/tests/vitest-config-alias-targets-3944.test.ts。


    Generated by Claude Code

  3. added a commit that references this issue on Aug 20, 2026
  4. added a commit that references this issue on Aug 23, 2026
  5. added a commit that references this issue on Aug 24, 2026
  6. added a commit that references this issue on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions