DashboardopencodePluginModule default definition

PluginModule default definition

Category: gotcha
Confidence: 1.00
ID: 01a08428-472e-74ce-8243-086ecdb3b506
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 16od9eLodujFsAeYb
Created: 2026-09-09 03:13:47
Updated: 2026-09-09 03:13:47

Content

Trap: exporting a legacy async plugin function looks compatible because older OpenCode loaders invoke function exports. Fix: V2 PluginModule.load() requires one default { id, setup } or { id, effect } definition; configured local targets must also be directories with discoverable server or index entrypoints, while standalone files work only through auto-discovery.

Move to: