opencode-pty icon indicating copy to clipboard operation
opencode-pty copied to clipboard

[Bug]: v0.3.0 — Missing 'default' export in module moment.js on startup

Open Skeptomenos opened this issue 8 months ago • 3 comments

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

  1. Add opencode-pty@latest to opencode.json plugins
  2. Start OpenCode Desktop 1.3.5
  3. Observe 16x ERROR service=plugin ... Missing 'default' export in module moment.js in sidecar log

Skeptomenos avatar Apr 01 '26 14:04 Skeptomenos

Thanks for the report, Will investigate and publish a fix.

shekohex avatar Apr 01 '26 14:04 shekohex

This is fixed in v0.3.1. Please try the new release, and reopen the issue if it still reproduces.

shekohex avatar Apr 01 '26 14:04 shekohex

Confirmed fixed on v0.3.1. Zero moment.js errors in the sidecar log after restart. Thanks for the fast turnaround.

Skeptomenos avatar Apr 01 '26 15:04 Skeptomenos