openclaw - 💡(How to fix) Fix Local build breaks: plugin-sdk imports reference missing exports (channel-config-helpers, anthropic-vertex, minimax, opencode, conversation-id) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#70350Fetched 2026-04-23 07:25:52
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
commented ×2closed ×1cross-referenced ×1mentioned ×1

pnpm build from a fresh checkout of main (commit 9a7160786a / 2026.4.12) fails with ~30 TS2305/TS2724 errors. All in src/plugin-sdk/* referencing exports that don't exist (or were renamed) in their target modules.

Error Message

src/plugin-sdk/imessage.ts(27,3): error TS2305: Module '"./channel-config-helpers.js"' has no exported member 'resolveIMessageConfigAllowFrom'. src/plugin-sdk/imessage.ts(28,3): error TS2305: Module '"./channel-config-helpers.js"' has no exported member 'resolveIMessageConfigDefaultTo'. src/plugin-sdk/provider-catalog.ts(10,3): error TS2305: Module '"./anthropic-vertex.js"' has no exported member 'ANTHROPIC_VERTEX_DEFAULT_MODEL_ID'. src/plugin-sdk/provider-catalog.ts(11,3): error TS2305: Module '"./anthropic-vertex.js"' has no exported member 'buildAnthropicVertexProvider'. src/plugin-sdk/provider-catalog.ts(18,10): error TS2305: Module '"./minimax.js"' has no exported member 'buildMinimaxPortalProvider'. src/plugin-sdk/provider-catalog.ts(18,38): error TS2305: Module '"./minimax.js"' has no exported member 'buildMinimaxProvider'. src/plugin-sdk/provider-models.ts(33,3): error TS2305: Module '"./minimax.js"' has no exported member 'isMiniMaxModernModelId'. src/plugin-sdk/provider-models.ts(36,3): error TS2305: Module '"./minimax.js"' has no exported member 'MINIMAX_TEXT_MODEL_CATALOG'. src/plugin-sdk/provider-models.ts(37,3): error TS2724: '"./minimax.js"' has no exported member named 'MINIMAX_TEXT_MODEL_ORDER'. Did you mean 'MINIMAX_TEXT_MODEL_REFS'? src/plugin-sdk/provider-models.ts(56,3): error TS2724: '"./opencode.js"' has no exported member named 'OPENCODE_ZEN_DEFAULT_MODEL_REF'. Did you mean 'OPENCODE_ZEN_DEFAULT_MODEL'? src/plugin-sdk/provider-models.ts(65,10): error TS2724: '"./anthropic-vertex.js"' has no exported member named 'resolveAnthropicVertexRegion'. Did you mean 'resolveAnthropicVertexClientRegion'? src/plugin-sdk/telegram-core.ts(23,10): error TS2305: Module '"../acp/conversation-id.js"' has no exported member 'parseTelegramTopicConversation'. src/plugin-sdk/whatsapp-core.ts(9,3): error TS2305: Module '"./channel-config-helpers.js"' has no exported member 'formatWhatsAppConfigAllowFromEntries'.

Root Cause

Impact

Anyone trying to build from source — including downstream agents running their own update pipelines — gets a hard failure. Brew/npm packaged binary still works because it was built upstream from a different (passing) commit.

Code Example

src/plugin-sdk/imessage.ts(27,3): error TS2305: Module '"./channel-config-helpers.js"' has no exported member 'resolveIMessageConfigAllowFrom'.
src/plugin-sdk/imessage.ts(28,3): error TS2305: Module '"./channel-config-helpers.js"' has no exported member 'resolveIMessageConfigDefaultTo'.
src/plugin-sdk/provider-catalog.ts(10,3): error TS2305: Module '"./anthropic-vertex.js"' has no exported member 'ANTHROPIC_VERTEX_DEFAULT_MODEL_ID'.
src/plugin-sdk/provider-catalog.ts(11,3): error TS2305: Module '"./anthropic-vertex.js"' has no exported member 'buildAnthropicVertexProvider'.
src/plugin-sdk/provider-catalog.ts(18,10): error TS2305: Module '"./minimax.js"' has no exported member 'buildMinimaxPortalProvider'.
src/plugin-sdk/provider-catalog.ts(18,38): error TS2305: Module '"./minimax.js"' has no exported member 'buildMinimaxProvider'.
src/plugin-sdk/provider-models.ts(33,3): error TS2305: Module '"./minimax.js"' has no exported member 'isMiniMaxModernModelId'.
src/plugin-sdk/provider-models.ts(36,3): error TS2305: Module '"./minimax.js"' has no exported member 'MINIMAX_TEXT_MODEL_CATALOG'.
src/plugin-sdk/provider-models.ts(37,3): error TS2724: '"./minimax.js"' has no exported member named 'MINIMAX_TEXT_MODEL_ORDER'. Did you mean 'MINIMAX_TEXT_MODEL_REFS'?
src/plugin-sdk/provider-models.ts(56,3): error TS2724: '"./opencode.js"' has no exported member named 'OPENCODE_ZEN_DEFAULT_MODEL_REF'. Did you mean 'OPENCODE_ZEN_DEFAULT_MODEL'?
src/plugin-sdk/provider-models.ts(65,10): error TS2724: '"./anthropic-vertex.js"' has no exported member named 'resolveAnthropicVertexRegion'. Did you mean 'resolveAnthropicVertexClientRegion'?
src/plugin-sdk/telegram-core.ts(23,10): error TS2305: Module '"../acp/conversation-id.js"' has no exported member 'parseTelegramTopicConversation'.
src/plugin-sdk/whatsapp-core.ts(9,3): error TS2305: Module '"./channel-config-helpers.js"' has no exported member 'formatWhatsAppConfigAllowFromEntries'.
... (and more in whatsapp.ts)

---

git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm build
RAW_BUFFERClick to expand / collapse

Summary

pnpm build from a fresh checkout of main (commit 9a7160786a / 2026.4.12) fails with ~30 TS2305/TS2724 errors. All in src/plugin-sdk/* referencing exports that don't exist (or were renamed) in their target modules.

Sample errors

src/plugin-sdk/imessage.ts(27,3): error TS2305: Module '"./channel-config-helpers.js"' has no exported member 'resolveIMessageConfigAllowFrom'.
src/plugin-sdk/imessage.ts(28,3): error TS2305: Module '"./channel-config-helpers.js"' has no exported member 'resolveIMessageConfigDefaultTo'.
src/plugin-sdk/provider-catalog.ts(10,3): error TS2305: Module '"./anthropic-vertex.js"' has no exported member 'ANTHROPIC_VERTEX_DEFAULT_MODEL_ID'.
src/plugin-sdk/provider-catalog.ts(11,3): error TS2305: Module '"./anthropic-vertex.js"' has no exported member 'buildAnthropicVertexProvider'.
src/plugin-sdk/provider-catalog.ts(18,10): error TS2305: Module '"./minimax.js"' has no exported member 'buildMinimaxPortalProvider'.
src/plugin-sdk/provider-catalog.ts(18,38): error TS2305: Module '"./minimax.js"' has no exported member 'buildMinimaxProvider'.
src/plugin-sdk/provider-models.ts(33,3): error TS2305: Module '"./minimax.js"' has no exported member 'isMiniMaxModernModelId'.
src/plugin-sdk/provider-models.ts(36,3): error TS2305: Module '"./minimax.js"' has no exported member 'MINIMAX_TEXT_MODEL_CATALOG'.
src/plugin-sdk/provider-models.ts(37,3): error TS2724: '"./minimax.js"' has no exported member named 'MINIMAX_TEXT_MODEL_ORDER'. Did you mean 'MINIMAX_TEXT_MODEL_REFS'?
src/plugin-sdk/provider-models.ts(56,3): error TS2724: '"./opencode.js"' has no exported member named 'OPENCODE_ZEN_DEFAULT_MODEL_REF'. Did you mean 'OPENCODE_ZEN_DEFAULT_MODEL'?
src/plugin-sdk/provider-models.ts(65,10): error TS2724: '"./anthropic-vertex.js"' has no exported member named 'resolveAnthropicVertexRegion'. Did you mean 'resolveAnthropicVertexClientRegion'?
src/plugin-sdk/telegram-core.ts(23,10): error TS2305: Module '"../acp/conversation-id.js"' has no exported member 'parseTelegramTopicConversation'.
src/plugin-sdk/whatsapp-core.ts(9,3): error TS2305: Module '"./channel-config-helpers.js"' has no exported member 'formatWhatsAppConfigAllowFromEntries'.
... (and more in whatsapp.ts)

Looks like the plugin-sdk surface drifted from the underlying modules and was never re-synced. Suggests either:

  • A rename pass missed re-exporting old names from channel-config-helpers/anthropic-vertex/minimax/opencode, or
  • The plugin-sdk barrel files were updated against an in-progress branch and never reconciled.

Repro

git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm build

Environment

  • OpenClaw 2026.4.12 (f9b1079)
  • Node v25.4.0, pnpm latest
  • macOS Darwin 25.2.0 arm64
  • Fresh main checkout (no local mods to plugin-sdk)

Impact

Anyone trying to build from source — including downstream agents running their own update pipelines — gets a hard failure. Brew/npm packaged binary still works because it was built upstream from a different (passing) commit.


Reported via Nexus on behalf of @danvallier

extent analysis

TL;DR

Update the plugin-sdk imports to match the current exports of the underlying modules, such as channel-config-helpers, anthropic-vertex, minimax, and opencode.

Guidance

  • Review the plugin-sdk files and update the imports to match the current exports of the underlying modules.
  • Check the channel-config-helpers, anthropic-vertex, minimax, and opencode modules for any renamed or removed exports and update the plugin-sdk files accordingly.
  • Verify that the plugin-sdk barrel files are up-to-date and reconciled with the underlying modules.
  • Run pnpm build again to test the changes and ensure that the errors are resolved.

Example

For example, in src/plugin-sdk/imessage.ts, update the import statement to match the current export of channel-config-helpers.js:

// Before
import { resolveIMessageConfigAllowFrom, resolveIMessageConfigDefaultTo } from './channel-config-helpers.js';

// After (assuming the exports were renamed)
import { resolveIMessageConfigAllowFrom as resolveAllowFrom, resolveIMessageConfigDefaultTo as resolveDefaultTo } from './channel-config-helpers.js';

Notes

The exact changes will depend on the current state of the underlying modules and the plugin-sdk files. It may be necessary to update multiple files and imports to resolve all the errors.

Recommendation

Apply a workaround by updating the plugin-sdk imports to match the current exports of the underlying modules. This will allow the build to succeed until a more permanent fix can be implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Local build breaks: plugin-sdk imports reference missing exports (channel-config-helpers, anthropic-vertex, minimax, opencode, conversation-id) [2 comments, 2 participants]