openclaw - 💡(How to fix) Fix build: missing dependencies for bundled extensions (grammy, @slack/web-api, @buape/carbon, etc.) [3 comments, 4 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#52719Fetched 2026-04-08 01:19:55
View on GitHub
Comments
3
Participants
4
Timeline
10
Reactions
3
Timeline (top)
commented ×3subscribed ×3mentioned ×2closed ×1

Building OpenClaw from source fails with TypeScript errors due to missing dependencies that are used by bundled channel extensions.

Error Message

Error Example

extensions/telegram/src/bot-handlers.runtime.ts(276,19): error TS7006: Parameter 'sendErr' implicitly has an 'any' type. extensions/telegram/src/bot-message-context.types.ts(1,26): error TS2307: Cannot find module 'grammy' or its corresponding type declarations. extensions/whatsapp/src/inbound/extract.ts(1,28): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations. extensions/slack/src/actions.ts(1,51): error TS2307: Cannot find module '@slack/web-api' or its corresponding type declarations. extensions/discord/src/monitor/reply-context.ts(1,43): error TS2307: Cannot find module '@buape/carbon' or its corresponding type declarations.

Root Cause

Building OpenClaw from source fails with TypeScript errors due to missing dependencies that are used by bundled channel extensions.

Fix Action

Workaround

Manually installing the missing packages:

npm install grammy @grammyjs/runner @grammyjs/transformer-throttler @whiskeysockets/baileys @slack/web-api @slack/bolt @larksuiteoapi/node-sdk @buape/carbon discord-api-types @discordjs/voice

Code Example

extensions/telegram/src/bot-handlers.runtime.ts(276,19): error TS7006: Parameter 'sendErr' implicitly has an 'any' type.
extensions/telegram/src/bot-message-context.types.ts(1,26): error TS2307: Cannot find module 'grammy' or its corresponding type declarations.
extensions/whatsapp/src/inbound/extract.ts(1,28): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
extensions/slack/src/actions.ts(1,51): error TS2307: Cannot find module '@slack/web-api' or its corresponding type declarations.
extensions/discord/src/monitor/reply-context.ts(1,43): error TS2307: Cannot find module '@buape/carbon' or its corresponding type declarations.

---

npm install grammy @grammyjs/runner @grammyjs/transformer-throttler @whiskeysockets/baileys @slack/web-api @slack/bolt @larksuiteoapi/node-sdk @buape/carbon discord-api-types @discordjs/voice
RAW_BUFFERClick to expand / collapse

Description

Building OpenClaw from source fails with TypeScript errors due to missing dependencies that are used by bundled channel extensions.

Missing Dependencies

After git pull and npm install, the following packages are missing:

Telegram extension

  • grammy
  • @grammyjs/runner
  • @grammyjs/transformer-throttler

WhatsApp extension

  • @whiskeysockets/baileys

Slack extension

  • @slack/web-api
  • @slack/bolt

Discord extension

  • @buape/carbon
  • discord-api-types
  • @discordjs/voice

Feishu extension

  • @larksuiteoapi/node-sdk

Error Example

extensions/telegram/src/bot-handlers.runtime.ts(276,19): error TS7006: Parameter 'sendErr' implicitly has an 'any' type.
extensions/telegram/src/bot-message-context.types.ts(1,26): error TS2307: Cannot find module 'grammy' or its corresponding type declarations.
extensions/whatsapp/src/inbound/extract.ts(1,28): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
extensions/slack/src/actions.ts(1,51): error TS2307: Cannot find module '@slack/web-api' or its corresponding type declarations.
extensions/discord/src/monitor/reply-context.ts(1,43): error TS2307: Cannot find module '@buape/carbon' or its corresponding type declarations.

Workaround

Manually installing the missing packages:

npm install grammy @grammyjs/runner @grammyjs/transformer-throttler @whiskeysockets/baileys @slack/web-api @slack/bolt @larksuiteoapi/node-sdk @buape/carbon discord-api-types @discordjs/voice

Expected Behavior

These dependencies should be either:

  1. Declared in the root package.json (if extensions are bundled)
  2. Or properly handled via npm workspaces if extensions are meant to be separate packages

Environment

  • OpenClaw version: 2026.3.22
  • Node version: 22.22.1
  • OS: Linux (Debian)

extent analysis

Fix Plan

To resolve the TypeScript errors due to missing dependencies, follow these steps:

  1. Declare dependencies in the root package.json: If the extensions are bundled, add the missing packages to the dependencies section of the root package.json file.

    "dependencies": {
      // ... existing dependencies ...
      "grammy": "^2.8.0",
      "@grammyjs/runner": "^2.8.0",
      "@grammyjs/transformer-throttler": "^2.8.0",
      "@whiskeysockets/baileys": "^1.2.0",
      "@slack/web-api": "^6.2.1",
      "@slack/bolt": "^4.10.0",
      "@larksuiteoapi/node-sdk": "^1.0.0",
      "@buape/carbon": "^1.0.0",
      "discord-api-types": "^0.28.0",
      "@discordjs/voice": "^0.12.0"
    }
  2. Use npm workspaces for separate packages: If the extensions are meant to be separate packages, consider using npm workspaces to manage dependencies. Create a workspaces field in the root package.json file:

    "workspaces": [
      "extensions/telegram",
      "extensions/whatsapp",
      "extensions/slack",
      "extensions/discord",
      "extensions/feishu"
    ]

    Then, in each extension's package.json file, declare the required dependencies.

  3. Run npm install: After updating the package.json file, run npm install to install the declared dependencies.

Verification

To verify that the fix worked, run the build process again and check for any TypeScript errors related to missing dependencies.

Extra Tips

  • Ensure that the versions of the installed packages are compatible with the OpenClaw version and Node.js version.
  • Consider using a npm shrinkwrap or yarn.lock file to lock the package versions and prevent version conflicts.
  • If using npm workspaces, make sure to update the package.json files in each workspace to reflect the correct dependencies.

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 build: missing dependencies for bundled extensions (grammy, @slack/web-api, @buape/carbon, etc.) [3 comments, 4 participants]