#Discord plugin fails to load on core 2026.4.26 — missing plugin-sdk/discord export

1 messages · Page 1 of 1 (latest)

wanton orbit
#

After running openclaw update on macOS (Darwin 24.6.0, node 24.13.0), my install
went 2026.4.25 → 2026.4.26. Discord bot now shows offline because the plugin fails
to load at gateway startup:

[plugins] discord failed to load from ~/.openclaw/extensions/discord/index.ts:
Error: Cannot find module
'/usr/local/lib/node_modules/openclaw/dist/plugin-sdk/root-alias.cjs/discord'

Cause: @openclaw/discord 2026.3.13 (latest published on npm) imports
openclaw/plugin-sdk/discord and openclaw/plugin-sdk/compat, but core
2026.4.26's package.json exports map no longer lists ./plugin-sdk/discord.
A force reinstall (openclaw plugins install @openclaw/discord --force) pulls
the same .tgz and fails identically. Plugin is enabled in config and was working
fine on 2026.4.25 immediately before the update.

Looks like the 2026.4.26 release shipped a breaking SDK change without a matching
@openclaw/discord republish. Rolling back core to 2026.4.25 is my workaround.

tender terraceBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

wanton orbit
#

@odd pilot please help

odd pilotBOT
#

Yep — this looks like a real release/package compatibility break, not a config issue.

I checked the current SDK docs and they explicitly say not to depend on channel-named seams like openclaw/plugin-sdk/discord; plugins should use generic SDK subpaths like channel-core instead. (docs.openclaw.ai)

So your workaround is the right one for now:

  • stay on / roll back to openclaw@2026.4.25
  • don’t keep force-reinstalling @openclaw/discord — current published package state still points at 2026.3.13, so that won’t fix it
  • please file this as a GitHub issue with the exact error + your version matrix: https://github.com/openclaw/openclaw/issues

I’d title it something like: Discord plugin 2026.3.13 fails on OpenClaw 2026.4.26 due missing plugin-sdk/discord import path.

#

I checked live npm: confirmed.

  • openclaw latest is 2026.4.26
  • @openclaw/discord latest is still 2026.3.13
  • openclaw@2026.4.26 is missing ./plugin-sdk/discord
  • @openclaw/discord@2026.3.13 still imports openclaw/plugin-sdk/discord

So yes: this is a package compatibility break, not your config.

Best immediate fix is to keep core pinned to 2026.4.25 until Discord is republished or core restores the compatibility export:

openclaw gateway stop
pnpm add -g openclaw@2026.4.25
openclaw --version
openclaw gateway restart
#
openclaw status --deep

If your global install was done with another package manager, use the equivalent “install global openclaw@2026.4.25” command — the important part is pinning core back.

Please file this with the exact repro/error here: https://github.com/openclaw/openclaw/issues

I’d title it: @openclaw/discord@2026.3.13 fails on openclaw@2026.4.26: missing plugin-sdk/discord export.

wanton orbit
#

whats the description of the error?

odd pilotBOT
#

Copy/paste description:

After upgrading OpenClaw core from `2026.4.25` to `2026.4.26`, the external Discord plugin fails to load during gateway startup.

`@openclaw/discord@2026.3.13` imports `openclaw/plugin-sdk/discord`, but `openclaw@2026.4.26` no longer exports `./plugin-sdk/discord` in its package exports map. The plugin loader then tries to resolve:

`/usr/local/lib/node_modules/openclaw/dist/plugin-sdk/root-alias.cjs/discord`

That path does not exist, so the Discord plugin never registers and the bot appears offline.

Force reinstalling the plugin does not help because npm still publishes `@openclaw/discord@2026.3.13` as latest, with the same import. Rolling core back to `openclaw@2026.4.25` restores Discord.

That’s the clean bug description. 🦐

wanton orbit
#

steps to reproduce along with expected and actual behavior?

odd pilotBOT
#

Paste this into the issue:

## Steps to reproduce

1. On macOS, install/run `openclaw@2026.4.25` with the Discord plugin enabled.
2. Install the Discord plugin:

   ```bash
   openclaw plugins install @openclaw/discord
  1. Confirm Discord works on 2026.4.25.

  2. Upgrade core:

    openclaw update
#

   This upgrades core to `openclaw@2026.4.26`.

5. Restart the gateway:

   ```bash
   openclaw gateway restart
  1. Check logs/status:

    openclaw logs --follow
    openclaw status --deep
    
#

## Expected behavior

The Discord plugin should load successfully after upgrading core, and the Discord bot should come online as it did on `openclaw@2026.4.25`.

## Actual behavior

The Discord plugin fails to load during gateway startup, so the bot stays offline.

Error:

```text
[plugins] discord failed to load from ~/.openclaw/extensions/discord/index.ts:
Error: Cannot find module
'/usr/local/lib/node_modules/openclaw/dist/plugin-sdk/root-alias.cjs/discord'