openclaw - 💡(How to fix) Fix Bundled channel extensions fail module resolution on first run (telegram, likely discord/nostr/slack) [1 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#75818Fetched 2026-05-02 05:29:33
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
3
Author
Timeline (top)
cross-referenced ×3commented ×1

Bundled channel extensions in dist/extensions/<plugin>/ cannot resolve their own runtime dependencies via Node module resolution on first run. Errors observed:

  • Cannot find module 'grammy' (telegram)
  • Cannot find module '../dist/babel.cjs' (telegram)

openclaw doctor --fix resolves it by staging plugin runtime deps where they can be found, so the packaging step is the gap.

Root Cause

Bundled channel extensions in dist/extensions/<plugin>/ cannot resolve their own runtime dependencies via Node module resolution on first run. Errors observed:

  • Cannot find module 'grammy' (telegram)
  • Cannot find module '../dist/babel.cjs' (telegram)

openclaw doctor --fix resolves it by staging plugin runtime deps where they can be found, so the packaging step is the gap.

Fix Action

Workaround

openclaw doctor --fix

RAW_BUFFERClick to expand / collapse

Summary

Bundled channel extensions in dist/extensions/<plugin>/ cannot resolve their own runtime dependencies via Node module resolution on first run. Errors observed:

  • Cannot find module 'grammy' (telegram)
  • Cannot find module '../dist/babel.cjs' (telegram)

openclaw doctor --fix resolves it by staging plugin runtime deps where they can be found, so the packaging step is the gap.

Version

OpenClaw 2026.4.29

Affected channels

Confirmed: telegram. Same packaging shape (and likely same bug) in: discord, nostr, slack. Not exercised on this host but worth checking.

Path

/home/openclaw/.npm-global/lib/node_modules/openclaw/dist/extensions/telegram/

Expected

Bundled extensions should resolve their deps out-of-the-box after npm i -g openclaw, without requiring doctor --fix.

Workaround

openclaw doctor --fix

extent analysis

TL;DR

The issue can be temporarily resolved by running openclaw doctor --fix to stage plugin runtime dependencies.

Guidance

  • The error messages indicate that the bundled channel extensions are unable to resolve their runtime dependencies, suggesting a packaging issue.
  • The openclaw doctor --fix command is able to resolve the issue by staging the dependencies, implying that the problem lies in the packaging step.
  • To mitigate the issue, run openclaw doctor --fix after installing OpenClaw with npm i -g openclaw.
  • Verify that the dependencies are correctly resolved by checking the node_modules directory within the extension directory (e.g., /home/openclaw/.npm-global/lib/node_modules/openclaw/dist/extensions/telegram/).

Notes

The issue appears to be specific to the packaging process, and the openclaw doctor --fix command provides a temporary workaround. The root cause of the issue is likely related to how the dependencies are being bundled and resolved.

Recommendation

Apply workaround: Run openclaw doctor --fix after installing OpenClaw to ensure that the dependencies are correctly staged and resolved.

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 Bundled channel extensions fail module resolution on first run (telegram, likely discord/nostr/slack) [1 comments, 2 participants]