Repository navigation
Replies: 2 comments 1 reply
|
pnpm add -D unrun -w |
|
TL;DR(中文): Root causetsdown 0.22.2 picks its config loader like this ( const nativeTS = process.features.typescript || process.versions.deno;
const autoLoader = isBun || nativeTS && isSupported ? "native" : "unrun";
That matches the report exactly: Repro# forces the same loader path on any Node version
pnpm exec tsdown --config-loader unrun --env.DSH_BUILD_FACE hostBefore the fix this produces the exact error above. Fix (one line + lockfile + generated notices)Declare --- a/package.json
+++ b/package.json
@@ -176,6 +176,7 @@
"tsdown": "^0.22.2",
"tsx": "^4.22.4",
"typescript": "^6.0.3",
+ "unrun": "^0.3.1",
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.1.8"
}Full patch (package.json + pnpm-lock.yaml, No new transitive dependencies — Verified
Workarounds for anyone hitting this today: |

Uh oh!
There was an error while loading. Please reload this page.
D:\ProjectManager\deepseek-harness>pnpm install
[WARN] Unsupported engine: wanted: {"node":"^22.19.0 || >=24.0.0"} (current: {"node":"v22.17.0","pnpm":"11.7.0"})
native/landlock-run/packages/linux-arm64 | [WARN] Unsupported platform: wanted: {"cpu":["arm64"],"os":["linux"],"libc":["any"]} (current: {"os":"win32","cpu":"x64","libc":"unknown"})
native/landlock-run/packages/linux-x64 | [WARN] Unsupported platform: wanted: {"cpu":["x64"],"os":["linux"],"libc":["any"]} (current: {"os":"win32","cpu":"x64","libc":"unknown"})
Scope: all 238 workspace projects
Already up to date
Done in 537ms using pnpm v11.7.0
D:\ProjectManager\deepseek-harness>pnpm run build
[WARN] Unsupported engine: wanted: {"node":"^22.19.0 || >=24.0.0"} (current: {"node":"v22.17.0","pnpm":"11.7.0"})
$ npm run build:lib && npm run build:web
ℹ tsdown v0.22.2 powered by rolldown v1.1.1
ERROR Error: Failed to import module "unrun". Please ensure it is installed.
at importWithError (file:///D:/ProjectManager/deepseek-harness/node_modules/.pnpm/tsdown@0.22.2_oxc-resolver@_f113eb69000457c8d5954142d0822f52/node_modules/tsdown/dist/general-Cp4NiJNK.mjs:42:9)
at async unrunImport (file:///D:/ProjectManager/deepseek-harness/node_modules/.pnpm/tsdown@0.22.2_oxc-resolver@_f113eb69000457c8d5954142d0822f52/node_modules/tsdown/dist/options-DWGUHu4D.mjs:696:20)
at async iterateAsync (file:///D:/ProjectManager/deepseek-harness/node_modules/.pnpm/quansync@1.0.0/node_modules/quansync/dist/src-C2Pm6gXo.js:58:28)
at async iterateAsync (file:///D:/ProjectManager/deepseek-harness/node_modules/.pnpm/quansync@1.0.0/node_modules/quansync/dist/src-C2Pm6gXo.js:58:28)
at async iterateAsync (file:///D:/ProjectManager/deepseek-harness/node_modules/.pnpm/quansync@1.0.0/node_modules/quansync/dist/src-C2Pm6gXo.js:58:28)
at async loadConfigFile (file:///D:/ProjectManager/deepseek-harness/node_modules/.pnpm/tsdown@0.22.2_oxc-resolver@_f113eb69000457c8d5954142d0822f52/node_modules/tsdown/dist/options-DWGUHu4D.mjs:604:19)
at async resolveConfig (file:///D:/ProjectManager/deepseek-harness/node_modules/.pnpm/tsdown@0.22.2_oxc-resolver@_f113eb69000457c8d5954142d0822f52/node_modules/tsdown/dist/build-BxT2lm9L.mjs:93:51)
at async build$1 (file:///D:/ProjectManager/deepseek-harness/node_modules/.pnpm/tsdown@0.22.2_oxc-resolver@_f113eb69000457c8d5954142d0822f52/node_modules/tsdown/dist/build-BxT2lm9L.mjs:718:40)
at async CAC. (file:///D:/ProjectManager/deepseek-harness/node_modules/.pnpm/tsdown@0.22.2_oxc-resolver@_f113eb69000457c8d5954142d0822f52/node_modules/tsdown/dist/run.mjs:21:2)
at async runCLI (file:///D:/ProjectManager/deepseek-harness/node_modules/.pnpm/tsdown@0.22.2_oxc-resolver@_f113eb69000457c8d5954142d0822f52/node_modules/tsdown/dist/run.mjs:45:3)
[ELIFECYCLE] Command failed with exit code 1.
D:\ProjectManager\deepseek-harness>
All reactions