openclaw - 💡(How to fix) Fix [2026.4.29] Channel plugins crash with "Cannot find package 'json5'" — missing from plugin-runtime-deps install [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#75734Fetched 2026-05-02 05:31:05
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
2
Timeline (top)
closed ×1commented ×1

Fix Action

Fix / Workaround

Workaround: add json5 directly to the runtime-deps package.json, then bootout + rm -rf the install root + bootstrap (kickstart alone won't trigger a fresh install). Persists until the next hash-based redeploy.

Code Example

[default] channel exited: Cannot find package 'json5' imported from
  /Users/<user>/.openclaw/plugin-runtime-deps/openclaw-2026.4.29-da6bdffc3d96/dist/frontmatter-Cc-V8aI2.js
Did you mean to import "json5/lib/index.js"?
[default] auto-restart attempt N/10 in Xs
RAW_BUFFERClick to expand / collapse

After upgrading to 2026.4.29, the Telegram channel (and any plugin path that hits dist/frontmatter-Cc-V8aI2.js) enters an exponential-backoff crashloop:

[default] channel exited: Cannot find package 'json5' imported from
  /Users/<user>/.openclaw/plugin-runtime-deps/openclaw-2026.4.29-da6bdffc3d96/dist/frontmatter-Cc-V8aI2.js
Did you mean to import "json5/lib/index.js"?
[default] auto-restart attempt N/10 in Xs

Several dist files import json5 as a bare specifier:

  • dist/frontmatter-Cc-V8aI2.js:5import JSON5 from "json5";
  • dist/bundle-manifest-CcRc3pxB.js
  • dist/config-cli-CJmqioRD.js
  • dist/exec-approvals-cli-CWPtNC6Z.js
  • (12+ files total, grep -l '"json5"' dist/*.js)

The global package's package.json correctly declares "json5": "^2.2.3", but the plugin-runtime-deps install root's manifest (built from installSpecs in bundled-runtime-deps-Dj2QXhNg.js) installs json5 only as a transitive of other deps. Under pnpm install --config.node-linker=hoisted, it lands in .pnpm/[email protected]/... and is not hoisted to node_modules/json5, so ESM resolution from the dist scope fails.

Workaround: add json5 directly to the runtime-deps package.json, then bootout + rm -rf the install root + bootstrap (kickstart alone won't trigger a fresh install). Persists until the next hash-based redeploy.

Suggested fix: ensure json5 is in the explicit dep list of the install manifest (and any other deps imported as bare specifiers from dist/), or switch to relative paths in the bundled output.

Environment: macOS 25.4.0 (darwin arm64), Node v25.5.0, openclaw 2026.4.29 via Homebrew global npm.

extent analysis

TL;DR

Add json5 to the runtime-deps package.json or switch to relative paths in the bundled output to resolve the json5 import issue.

Guidance

  • Verify that json5 is installed as a direct dependency in the package.json of the plugin-runtime-deps install root.
  • Check the installSpecs in bundled-runtime-deps-Dj2QXhNg.js to ensure json5 is included in the explicit dependency list.
  • Consider switching to relative paths in the bundled output to avoid bare specifier imports.
  • To temporarily mitigate the issue, apply the provided workaround: add json5 to the runtime-deps package.json, then bootout + rm -rf the install root + bootstrap.

Example

No code snippet is provided as the issue is related to dependency management and import paths.

Notes

The issue is specific to the openclaw version 2026.4.29 and the pnpm package manager with the --config.node-linker=hoisted flag. The suggested fix may not apply to other versions or package managers.

Recommendation

Apply the workaround by adding json5 to the runtime-deps package.json until a permanent fix is implemented, as it provides a temporary solution to the issue.

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 [2026.4.29] Channel plugins crash with "Cannot find package 'json5'" — missing from plugin-runtime-deps install [1 comments, 2 participants]