[Bug]: v0.3.0 — Missing 'default' export in module moment.js on startup
Description
After updating to v0.3.0 (released today), the plugin fails to load with 16 errors on every OpenCode Desktop startup:
ERROR service=plugin pkg=opencode-pty version=latest error=Missing 'default' export in module moment.js
This triggers error notification chimes on every app launch.
Environment
- OpenCode Desktop 1.3.5
- macOS (darwin)
- Bun runtime
Likely Cause
The commit c3d80ef5 ("chore(package): simplify server export map") changed the package.json exports. This appears to have broken the moment.js import resolution path — the module loader can no longer find the default export.
v0.2.3 worked fine (it had a different issue — WARN "no server entrypoint" — but did not produce hard errors).
Reproduction
- Add
opencode-pty@latesttoopencode.jsonplugins - Start OpenCode Desktop 1.3.5
- Observe 16x
ERROR service=plugin ... Missing 'default' export in module moment.jsin sidecar log
Thanks for the report, Will investigate and publish a fix.
This is fixed in v0.3.1. Please try the new release, and reopen the issue if it still reproduces.
Confirmed fixed on v0.3.1. Zero moment.js errors in the sidecar log after restart. Thanks for the fast turnaround.