openclaw - ✅(Solved) Fix [Bug]: CLI crashes on all commands due to missing `discord-api-types` module after upgrading to 2026.4.5 [3 pull requests, 1 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#62224Fetched 2026-04-08 03:07:27
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Participants
Timeline (top)
cross-referenced ×3labeled ×2referenced ×2

After upgrading OpenClaw from version 2026.4.2 to 2026.4.5, running any openclaw command (such as openclaw status or openclaw doctor --fix) results in a fatal error. The CLI is unable to find the discord-api-types/v10.js module inside the @buape/carbon dependency. Local installation of the missing package does not resolve this global dependency issue.

Error Message

root@iZbp1anlo43frk99hyqtaeZ:~# openclaw status
Failed to read config at /root/.openclaw/openclaw.json Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'

...
🦞 OpenClaw 2026.4.5 (3e72c03) — I don't sleep, I just enter low-power mode and dream of clean diffs.

Config invalid
File: ~/.openclaw/openclaw.json
Problem:

  • <root>: read failed: Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'

Run: openclaw doctor --fix

Root Cause

After upgrading OpenClaw from version 2026.4.2 to 2026.4.5, running any openclaw command (such as openclaw status or openclaw doctor --fix) results in a fatal error. The CLI is unable to find the discord-api-types/v10.js module inside the @buape/carbon dependency. Local installation of the missing package does not resolve this global dependency issue.

Fix Action

Fixed

PR fix notes

PR #62250: fix(deps): add discord-api-types to resolve CLI crash

Description (problem / solution / changelog)

Fixes #62224

Changed files

  • package.json (modified, +1/-0)

PR #3: fix(cli): add missing discord-api-types dependency (resolves #62224)

Description (problem / solution / changelog)

Summary

Resolves #62224 - CLI crashes on all commands due to missing discord-api-types module after upgrading to 2026.4.5.

Root Cause

@buape/carbon depends on discord-api-types but it was not properly installed in node_modules after v2026.4.5 upgrade.

Fix

Add discord-api-types as a direct dependency in package.json.

Test

pnpm run build passes

Changed files

  • .agent/workflows/update_clawdbot.md (removed, +0/-380)
  • .agents/skills/openclaw-parallels-smoke/SKILL.md (modified, +33/-5)
  • .agents/skills/openclaw-qa-testing/SKILL.md (added, +86/-0)
  • .agents/skills/openclaw-qa-testing/agents/openai.yaml (added, +4/-0)
  • .agents/skills/openclaw-release-maintainer/SKILL.md (modified, +52/-22)
  • .agents/skills/openclaw-test-heap-leaks/SKILL.md (modified, +16/-12)
  • .agents/skills/openclaw-test-heap-leaks/scripts/heapsnapshot-delta.mjs (modified, +308/-20)
  • .agents/skills/security-triage/SKILL.md (modified, +3/-0)
  • .codex (renamed, +0/-0)
  • .dockerignore (modified, +2/-0)
  • .github/actions/setup-node-env/action.yml (modified, +1/-1)
  • .github/actions/setup-pnpm-store-cache/action.yml (modified, +1/-1)
  • .github/labeler.yml (modified, +32/-0)
  • .github/pr-assets/compaction-checkpoints/sessions-checkpoints-inline.png (added, +0/-0)
  • .github/pr-assets/compaction-checkpoints/sessions-overview-inline.png (added, +0/-0)
  • .github/pull_request_template.md (modified, +3/-5)
  • .github/workflows/auto-response.yml (modified, +6/-2)
  • .github/workflows/ci-bun.yml (removed, +0/-110)
  • .github/workflows/ci.yml (modified, +242/-45)
  • .github/workflows/control-ui-locale-refresh.yml (added, +172/-0)
  • .github/workflows/docs-sync-publish.yml (added, +70/-0)
  • .github/workflows/docs-translate-trigger-release.yml (added, +42/-0)
  • .github/workflows/install-smoke.yml (modified, +11/-9)
  • .github/workflows/macos-release.yml (modified, +6/-5)
  • .github/workflows/openclaw-npm-release.yml (modified, +281/-12)
  • .github/workflows/plugin-clawhub-release.yml (added, +276/-0)
  • .github/workflows/plugin-npm-release.yml (modified, +4/-1)
  • .gitignore (modified, +11/-1)
  • .markdownlint-cli2.jsonc (modified, +3/-0)
  • .npmignore (modified, +1/-0)
  • .oxlintrc.json (modified, +32/-2)
  • AGENTS.md (modified, +58/-10)
  • CHANGELOG.md (modified, +974/-347)
  • CONTRIBUTING.md (modified, +10/-1)
  • Dockerfile (modified, +3/-0)
  • Makefile (added, +4/-0)
  • README.md (modified, +52/-3)
  • SECURITY.md (modified, +33/-2)
  • appcast.xml (modified, +395/-196)
  • apps/android/app/build.gradle.kts (modified, +41/-33)
  • apps/android/app/src/main/AndroidManifest.xml (modified, +14/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/AssistantLaunch.kt (added, +43/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/MainActivity.kt (modified, +12/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/MainViewModel.kt (modified, +102/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/NodeRuntime.kt (modified, +243/-54)
  • apps/android/app/src/main/java/ai/openclaw/app/NotificationForwardingPolicy.kt (added, +102/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/PermissionRequester.kt (modified, +10/-1)
  • apps/android/app/src/main/java/ai/openclaw/app/SecurePrefs.kt (modified, +190/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/chat/ChatController.kt (modified, +51/-37)
  • apps/android/app/src/main/java/ai/openclaw/app/gateway/DeviceAuthStore.kt (modified, +67/-7)
  • apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayHostSecurity.kt (added, +124/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewaySession.kt (modified, +108/-34)
  • apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayTls.kt (modified, +33/-7)
  • apps/android/app/src/main/java/ai/openclaw/app/node/CanvasActionTrust.kt (modified, +17/-16)
  • apps/android/app/src/main/java/ai/openclaw/app/node/ConnectionManager.kt (modified, +14/-1)
  • apps/android/app/src/main/java/ai/openclaw/app/node/DeviceHandler.kt (modified, +51/-5)
  • apps/android/app/src/main/java/ai/openclaw/app/node/DeviceNotificationListenerService.kt (modified, +120/-24)
  • apps/android/app/src/main/java/ai/openclaw/app/node/InvokeCommandRegistry.kt (modified, +4/-1)
  • apps/android/app/src/main/java/ai/openclaw/app/node/InvokeDispatcher.kt (modified, +47/-9)
  • apps/android/app/src/main/java/ai/openclaw/app/node/SmsHandler.kt (modified, +15/-10)
  • apps/android/app/src/main/java/ai/openclaw/app/node/SmsManager.kt (modified, +649/-135)
  • apps/android/app/src/main/java/ai/openclaw/app/ui/CanvasScreen.kt (modified, +1/-1)
  • apps/android/app/src/main/java/ai/openclaw/app/ui/ConnectTabScreen.kt (modified, +41/-7)
  • apps/android/app/src/main/java/ai/openclaw/app/ui/GatewayConfigResolver.kt (modified, +104/-16)
  • apps/android/app/src/main/java/ai/openclaw/app/ui/GatewayDiagnostics.kt (modified, +1/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/ui/OnboardingFlow.kt (modified, +76/-38)
  • apps/android/app/src/main/java/ai/openclaw/app/ui/PostOnboardingTabs.kt (modified, +15/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/ui/SettingsSheet.kt (modified, +517/-12)
  • apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatComposer.kt (modified, +44/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatSheetContent.kt (modified, +46/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/voice/MicCaptureManager.kt (modified, +116/-10)
  • apps/android/app/src/main/java/ai/openclaw/app/voice/TalkAudioPlayer.kt (added, +242/-0)
  • apps/android/app/src/main/java/ai/openclaw/app/voice/TalkModeManager.kt (modified, +97/-22)
  • apps/android/app/src/main/java/ai/openclaw/app/voice/TalkSpeakClient.kt (added, +143/-0)
  • apps/android/app/src/main/res/values/assistant.xml (added, +7/-0)
  • apps/android/app/src/main/res/xml/shortcuts.xml (added, +17/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/AssistantLaunchTest.kt (added, +43/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/GatewayBootstrapAuthTest.kt (added, +220/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/NotificationForwardingPolicyTest.kt (added, +189/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/SecurePrefsNotificationForwardingTest.kt (added, +133/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/gateway/DeviceAuthStoreTest.kt (added, +63/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/gateway/GatewaySessionInvokeTest.kt (modified, +155/-6)
  • apps/android/app/src/test/java/ai/openclaw/app/gateway/GatewaySessionInvokeTimeoutTest.kt (modified, +17/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/node/CallLogHandlerTest.kt (modified, +35/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/node/CanvasActionTrustTest.kt (modified, +30/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/node/ConnectionManagerTest.kt (modified, +459/-1)
  • apps/android/app/src/test/java/ai/openclaw/app/node/DeviceHandlerTest.kt (modified, +122/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/node/DeviceNotificationListenerServiceTest.kt (added, +119/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/node/InvokeCommandRegistryTest.kt (modified, +44/-1)
  • apps/android/app/src/test/java/ai/openclaw/app/node/InvokeDispatcherTest.kt (added, +368/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/node/LocationHandlerTest.kt (modified, +111/-3)
  • apps/android/app/src/test/java/ai/openclaw/app/node/NotificationsHandlerTest.kt (modified, +63/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/node/SmsManagerTest.kt (modified, +899/-8)
  • apps/android/app/src/test/java/ai/openclaw/app/node/SystemHandlerTest.kt (modified, +31/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/protocol/OpenClawProtocolConstantsTest.kt (modified, +6/-4)
  • apps/android/app/src/test/java/ai/openclaw/app/ui/CanvasA2UIActionBridgeTest.kt (added, +50/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/ui/GatewayConfigResolverTest.kt (modified, +293/-23)
  • apps/android/app/src/test/java/ai/openclaw/app/ui/OnboardingFlowLogicTest.kt (added, +27/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/ui/SettingsSheetNotificationAppsTest.kt (added, +35/-0)
  • apps/android/app/src/test/java/ai/openclaw/app/ui/chat/ChatComposerDraftTest.kt (added, +44/-0)

PR #62252: fix(cli): add missing discord-api-types dependency (resolves #62224)

Description (problem / solution / changelog)

Summary

Resolves #62224 - CLI crashes on all commands due to missing discord-api-types module after upgrading to 2026.4.5.

Root Cause

@buape/carbon depends on discord-api-types but it was not properly installed in node_modules after v2026.4.5 upgrade.

Fix

Add discord-api-types as a direct dependency in package.json.

Test

pnpm run build passes

Changed files

  • package.json (modified, +1/-0)

Code Example

root@iZbp1anlo43frk99hyqtaeZ:~# openclaw status  
Failed to read config at /root/.openclaw/openclaw.json Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'  

...  
🦞 OpenClaw 2026.4.5 (3e72c03)I don't sleep, I just enter low-power mode and dream of clean diffs.  

Config invalid  
File: ~/.openclaw/openclaw.json  
Problem:  
  - <root>: read failed: Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'  

Run: openclaw doctor --fix

---

root@iZbp1anlo43frk99hyqtaeZ:~# openclaw status
Failed to read config at /root/.openclaw/openclaw.json Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1419:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1408:15)
    at resolveExports (node:internal/modules/cjs/loader:650:14)
    at Function._findPath (node:internal/modules/cjs/loader:717:31)
    at Function._resolveFilename (node:internal/modules/cjs/loader:1369:27)
    at Function.resolve (node:internal/modules/helpers:157:19)
    at jitiResolve (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:148703)
    at jitiRequire (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150290)
    at /usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987
    at /usr/lib/node_modules/openclaw/node_modules/@buape/carbon/dist/src/abstracts/AnySelectMenuInteraction.js:1:217 {
  code: 'MODULE_NOT_FOUND',
  path: '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types'
}

🦞 OpenClaw 2026.4.5 (3e72c03)I don't sleep, I just enter low-power mode and dream of clean diffs.

Config invalid
File: ~/.openclaw/openclaw.json
Problem:
  - <root>: read failed: Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'

Run: openclaw doctor --fix
Failed to read config at /root/.openclaw/openclaw.json Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1419:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1408:15)
    at resolveExports (node:internal/modules/cjs/loader:650:14)
    at Function._findPath (node:internal/modules/cjs/loader:717:31)
    at Function._resolveFilename (node:internal/modules/cjs/loader:1369:27)
    at Function.resolve (node:internal/modules/helpers:157:19)
    at jitiResolve (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:148703)
    at jitiRequire (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150290)
    at /usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987
    at /usr/lib/node_modules/openclaw/node_modules/@buape/carbon/dist/src/abstracts/AnySelectMenuInteraction.js:1:217 {
  code: 'MODULE_NOT_FOUND',
  path: '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types'
}
[openclaw] Failed to start CLI: Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1419:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1408:15)
    at resolveExports (node:internal/modules/cjs/loader:650:14)
    at Function._findPath (node:internal/modules/cjs/loader:717:31)
    at Function._resolveFilename (node:internal/modules/cjs/loader:1369:27)
    at Function.resolve (node:internal/modules/helpers:157:19)
    at jitiResolve (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:148703)
    at jitiRequire (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150290)
    at /usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987
    at /usr/lib/node_modules/openclaw/node_modules/@buape/carbon/dist/src/abstracts/AnySelectMenuInteraction.js:1:217
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After upgrading OpenClaw from version 2026.4.2 to 2026.4.5, running any openclaw command (such as openclaw status or openclaw doctor --fix) results in a fatal error. The CLI is unable to find the discord-api-types/v10.js module inside the @buape/carbon dependency. Local installation of the missing package does not resolve this global dependency issue.

Steps to reproduce

  1. Have a working installation of OpenClaw 2026.4.2.
  2. Upgrade OpenClaw to version 2026.4.5.
  3. Run openclaw status or openclaw doctor --fix in the terminal.
  4. Observe the Cannot find module error.

Expected behavior

The CLI commands should execute successfully after the upgrade, or openclaw doctor --fix should be able to automatically repair the missing dependency.

Actual behavior

Running openclaw status or openclaw doctor --fix outputs the following:

root@iZbp1anlo43frk99hyqtaeZ:~# openclaw status  
Failed to read config at /root/.openclaw/openclaw.json Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'  

...  
🦞 OpenClaw 2026.4.5 (3e72c03) — I don't sleep, I just enter low-power mode and dream of clean diffs.  

Config invalid  
File: ~/.openclaw/openclaw.json  
Problem:  
  - <root>: read failed: Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'  

Run: openclaw doctor --fix

OpenClaw version

2026.4.5

Operating system

Ubuntu 24.04.4 LTS

Install method

npm

Model

GLM-5

Provider / routing chain

zai

Additional provider/model setup details

The issue specifically started occurring after upgrading from 2026.4.2 to 2026.4.5. I attempted to fix this by running npm install discord-api-types@latest in the terminal, but since it installs locally, it doesn't resolve the global dependency corruption in /usr/lib/node_modules/openclaw/....

Logs, screenshots, and evidence

root@iZbp1anlo43frk99hyqtaeZ:~# openclaw status
Failed to read config at /root/.openclaw/openclaw.json Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1419:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1408:15)
    at resolveExports (node:internal/modules/cjs/loader:650:14)
    at Function._findPath (node:internal/modules/cjs/loader:717:31)
    at Function._resolveFilename (node:internal/modules/cjs/loader:1369:27)
    at Function.resolve (node:internal/modules/helpers:157:19)
    at jitiResolve (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:148703)
    at jitiRequire (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150290)
    at /usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987
    at /usr/lib/node_modules/openclaw/node_modules/@buape/carbon/dist/src/abstracts/AnySelectMenuInteraction.js:1:217 {
  code: 'MODULE_NOT_FOUND',
  path: '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types'
}

🦞 OpenClaw 2026.4.5 (3e72c03) — I don't sleep, I just enter low-power mode and dream of clean diffs.

Config invalid
File: ~/.openclaw/openclaw.json
Problem:
  - <root>: read failed: Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'

Run: openclaw doctor --fix
Failed to read config at /root/.openclaw/openclaw.json Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1419:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1408:15)
    at resolveExports (node:internal/modules/cjs/loader:650:14)
    at Function._findPath (node:internal/modules/cjs/loader:717:31)
    at Function._resolveFilename (node:internal/modules/cjs/loader:1369:27)
    at Function.resolve (node:internal/modules/helpers:157:19)
    at jitiResolve (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:148703)
    at jitiRequire (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150290)
    at /usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987
    at /usr/lib/node_modules/openclaw/node_modules/@buape/carbon/dist/src/abstracts/AnySelectMenuInteraction.js:1:217 {
  code: 'MODULE_NOT_FOUND',
  path: '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types'
}
[openclaw] Failed to start CLI: Error: Cannot find module '/usr/lib/node_modules/openclaw/node_modules/@buape/carbon/node_modules/discord-api-types/v10.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1419:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1408:15)
    at resolveExports (node:internal/modules/cjs/loader:650:14)
    at Function._findPath (node:internal/modules/cjs/loader:717:31)
    at Function._resolveFilename (node:internal/modules/cjs/loader:1369:27)
    at Function.resolve (node:internal/modules/helpers:157:19)
    at jitiResolve (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:148703)
    at jitiRequire (/usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150290)
    at /usr/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987
    at /usr/lib/node_modules/openclaw/node_modules/@buape/carbon/dist/src/abstracts/AnySelectMenuInteraction.js:1:217

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The most likely fix is to reinstall OpenClaw and its dependencies, ensuring that the discord-api-types module is correctly installed and referenced.

Guidance

  • Verify that the discord-api-types module is installed and up-to-date by checking the node_modules directory within the OpenClaw installation.
  • Attempt to reinstall the @buape/carbon dependency, which includes the missing discord-api-types module, using npm.
  • Check the OpenClaw configuration and dependencies for any version mismatches or conflicts that could be causing the issue.
  • Consider downgrading to the previous version of OpenClaw (2026.4.2) if the issue is critical and a fix is not immediately available.

Example

No specific code snippet is provided, as the issue appears to be related to dependency management and installation.

Notes

The issue may be related to a change in the dependencies or installation process between OpenClaw versions 2026.4.2 and 2026.4.5. Further investigation into the installation and dependency management process may be necessary to resolve the issue.

Recommendation

Apply a workaround by reinstalling OpenClaw and its dependencies, as the issue appears to be related to a dependency management problem rather than a code issue within OpenClaw itself.

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…

FAQ

Expected behavior

The CLI commands should execute successfully after the upgrade, or openclaw doctor --fix should be able to automatically repair the missing dependency.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING