脚本编译错误 #5622
Unanswered
luoyeqiufeng
asked this question in
Q&A
脚本编译错误
#5622
Replies: 1 comment
|
重新clone一个新项目,重新 install 和build |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
运行环境Microsoft Windows [版本 10.0.26200.9168] node 版本v22.23.2
运行错误
ERROR Error: Build failed with 4 errors:
[MISSING_EXPORT] "DEFAULT_PREPARED_SESSION_CACHE_SIZE" is not exported by "../session-persistence/src/index.ts".
╭─[ lib/types/index.js:8:10 ]
│
8 │ import { DEFAULT_PREPARED_SESSION_CACHE_SIZE, DEFAULT_WRITE_BATCH_MAX_DELAY_MS, MAX_WRITE_BATCH_DELAY_MS, PersistenceCoordinator, SessionPersistence, } from '@deepseek-ai/dsh-session-persistence';
│ ─────────────────┬─────────────────
│ ╰─────────────────── Missing export
───╯
[MISSING_EXPORT] "DEFAULT_WRITE_BATCH_MAX_DELAY_MS" is not exported by "../session-persistence/src/index.ts".
╭─[ lib/types/index.js:8:47 ]
│
8 │ import { DEFAULT_PREPARED_SESSION_CACHE_SIZE, DEFAULT_WRITE_BATCH_MAX_DELAY_MS, MAX_WRITE_BATCH_DELAY_MS, PersistenceCoordinator, SessionPersistence, } from '@deepseek-ai/dsh-session-persistence';
│ ────────────────┬───────────────
│ ╰───────────────── Missing export
───╯
[MISSING_EXPORT] "MAX_WRITE_BATCH_DELAY_MS" is not exported by "../session-persistence/src/index.ts".
╭─[ lib/types/index.js:8:81 ]
│
8 │ import { DEFAULT_PREPARED_SESSION_CACHE_SIZE, DEFAULT_WRITE_BATCH_MAX_DELAY_MS, MAX_WRITE_BATCH_DELAY_MS, PersistenceCoordinator, SessionPersistence, } from '@deepseek-ai/dsh-session-persistence';
│ ────────────┬───────────
│ ╰───────────── Missing export
───╯
[MISSING_EXPORT] "PersistenceCoordinator" is not exported by "../session-persistence/src/index.ts".
╭─[ lib/types/index.js:8:107 ]
│
8 │ import { DEFAULT_PREPARED_SESSION_CACHE_SIZE, DEFAULT_WRITE_BATCH_MAX_DELAY_MS, MAX_WRITE_BATCH_DELAY_MS, PersistenceCoordinator, SessionPersistence, } from '@deepseek-ai/dsh-session-persistence';
│ ───────────┬──────────
│ ╰──────────── Missing export
───╯
[ELIFECYCLE] Command failed with exit code 1.
D:\pg\deepseek-harness\scripts\build.ts:27
throw new Error(
build: ${script} exited with ${String(result.status ?? result.signal)})^
Error: build: build:lib exited with 1
at runScript (D:\pg\deepseek-harness\scripts\build.ts:27:11)
at main (D:\pg\deepseek-harness\scripts\build.ts:44:3)
at (D:\pg\deepseek-harness\scripts\build.ts:52:23)
at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:681:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
Node.js v22.23.2
[ELIFECYCLE] Command failed with exit code 1.
All reactions