typescript-circular-dependency
blader · Development
检测并解决 TypeScript/JavaScript 循环导入依赖问题。当出现以下情况时使用:(1) 运行时提示“无法在初始化前访问 'X'”,(2) 导入返回意外的 undefined,(3) “ReferenceError: 无法在初始化前访问 X”,(4) 类型错误在更改导入顺序后消失,(5) Jest/Vitest 测试因未定义导入而失败但浏览器中正常运行。
Detect and resolve TypeScript/JavaScript circular import dependencies. Use when: (1) "Cannot access 'X' before initialization" at runtime, (2) Import returns undefined unexpectedly, (3) "ReferenceError: Cannot access X before initialization", (4) Type errors that disappear when you change import order, (5) Jest/Vitest tests fail with undefined imports that work in browser.
npx skills add https://github.com/blader/Claudeception --skill typescript-circular-dependency
星标 2355 · 安装量 0