openclaw - ✅(Solved) Fix dist/extensions/slack/ imports @slack/web-api and @slack/bolt, but deps were removed in 2026.4.20 [1 pull requests, 2 comments, 3 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#70162Fetched 2026-04-23 07:28:31
View on GitHub
Comments
2
Participants
3
Timeline
8
Reactions
1
Timeline (top)
commented ×2referenced ×2closed ×1cross-referenced ×1

Fix Action

Workaround

Stay pinned to `2026.4.15`.

PR fix notes

PR #70194: fix: add missing @slack/bolt and @slack/web-api dependencies

Description (problem / solution / changelog)

The dist/extensions/slack/ module imports @slack/bolt and @slack/web-api, but these packages were removed from package.json dependencies in 2026.4.20, causing Cannot find module errors on fresh installs.

Diff:

+    "@slack/bolt": "^4.7.0",
+    "@slack/web-api": "^7.15.1",

Fixes #70162

Changed files

  • package.json (modified, +2/-0)
  • pnpm-lock.yaml (modified, +18/-12)
  • pnpm-workspace.yaml (modified, +1/-0)
RAW_BUFFERClick to expand / collapse

openclaw 2026.4.20 and 2026.4.21 publish dist/extensions/slack/ with source that imports @slack/web-api and @slack/bolt, but neither package is declared in dependencies, optionalDependencies, peerDependencies, or bundledDependencies. Every fresh install crashes at gateway startup with Cannot find module '@slack/web-api' from dist/extensions/slack/client-*.js.

Versions

  • Last working stable: 2026.4.15 (declares @slack/bolt ^4.7.0, @slack/web-api ^7.15.0)
  • Last working beta: 2026.4.19-beta.2 (declares @slack/bolt ^4.7.0, @slack/web-api ^7.15.1)
  • Broken: 2026.4.20, 2026.4.21, and both .20 betas

Drop happened between 2026.4.19-beta.2 and 2026.4.20-beta.1.

Reproduction

``` $ npm view [email protected] dependencies | grep slack (empty)

$ npm pack [email protected] $ tar -xzf openclaw-2026.4.21.tgz $ grep -rE 'from "@slack' package/dist/extensions/slack/ | head -3 package/dist/extensions/slack/provider-.js: import * as SlackBoltNamespace from "@slack/bolt"; package/dist/extensions/slack/provider-.js: import SlackBolt from "@slack/bolt"; package/dist/extensions/slack/client-*.js: import { WebClient } from "@slack/web-api"; ```

Likely fix

Restore to package.json dependencies:

```json "@slack/bolt": "^4.7.0", "@slack/web-api": "^7.15.1" ```

Or move the Slack extension to `optionalDependencies` if it was meant to be opt-in, but the current packaging ships the code without the deps.

Workaround

Stay pinned to `2026.4.15`.

extent analysis

TL;DR

Restore the missing dependencies @slack/bolt and @slack/web-api to the package.json file to fix the module not found error.

Guidance

  • Verify that the package.json file is missing the dependencies @slack/bolt and @slack/web-api by running npm view [email protected] dependencies | grep slack.
  • Add the missing dependencies to the package.json file with the versions @slack/bolt": "^4.7.0" and "@slack/web-api": "^7.15.1".
  • Alternatively, consider moving the Slack extension to optionalDependencies if it was meant to be opt-in.
  • To mitigate the issue temporarily, pin the version to 2026.4.15 which is known to work.

Example

{
  "dependencies": {
    "@slack/bolt": "^4.7.0",
    "@slack/web-api": "^7.15.1"
  }
}

Notes

The issue seems to be caused by a missing dependency declaration in the package.json file. Restoring the dependencies should fix the issue. However, if the Slack extension is meant to be opt-in, moving it to optionalDependencies might be a better solution.

Recommendation

Apply the workaround by adding the missing dependencies to the package.json file, as this is a more direct and reliable fix.

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 - ✅(Solved) Fix dist/extensions/slack/ imports @slack/web-api and @slack/bolt, but deps were removed in 2026.4.20 [1 pull requests, 2 comments, 3 participants]