Replies: 3 comments
|
There's one already. Why the "plugin Config throws raw TypeError" case fits. The five probes above are the current v0.3.0 set (2026-08-18); a Fix today. |
|
Update — the doctor now covers 8 probes and grew for rc.8 → rc.1:
At
|
|
Update — doctor now covers 9 probes as of
At |
Uh oh!
There was an error while loading. Please reload this page.
一句话说明问题
插件导出非 Standard Schema 的
Config(如普通对象{})时,启动直接抛裸TypeError: Cannot read properties of undefined (reading 'validate'),无任何指向性提示;PM2 模式下表现为无限重启直到 errored,用户无法定位是哪个插件、为什么。详情
复现步骤:
export const Config = {}(普通对象,非 Standard Schema)dsh plugin add装入 web profiledsh web启动即崩溃:failed to apply loader entry <id> (dsh-path-open): Cannot read properties of undefined (reading 'validate'),堆栈指向 cordis 内部resolveConfig(runtime.Config["~standard"].validate(config)),完全看不到"你的 Config 写法不对"这类信息实际结果:
import z from '@deepseek-ai/schemastery'; export const Config = z.object({...}))预期结果:
TypeError替换为可读错误:plugin "xxx": Config must be a Standard Schema (see docs: ...),并列出插件名与文件位置dsh doctor类诊断命令,一键检查所有已装插件的 Config/依赖/服务名冲突环境:Windows 11 Pro / Node.js v24.16.0 / dsh 0.1.0-rc.6
备注:插件
Config = {}时resolveConfig在cordis/lib/index.js:957崩溃,可稳定复现All reactions