[PR #5797] fix(deps): add missing @opencode-ai/plugin to dependencies #11593

Closed
opened 2026-02-16 18:16:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5797

State: closed
Merged: Yes


Description

This PR fixes a Cannot find module error encountered when running tools that rely on @opencode-ai/plugin.

The Problem

As described in issue #2802, running scripts like .opencode/tool/github-triage.ts fails with the following error because the plugin package was missing from the dependencies list:

error: Cannot find module '@opencode-ai/plugin' from ...

The Fix

I have added "@opencode-ai/plugin": "workspace:*" to the dependencies section in package.json. This ensures the module is correctly linked and available for the tools to use.

Related Issue

Fixes #2802

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5797 **State:** closed **Merged:** Yes --- ## Description This PR fixes a `Cannot find module` error encountered when running tools that rely on `@opencode-ai/plugin`. ### The Problem As described in issue #2802, running scripts like `.opencode/tool/github-triage.ts` fails with the following error because the plugin package was missing from the dependencies list: ``` error: Cannot find module '@opencode-ai/plugin' from ... ``` ### The Fix I have added `"@opencode-ai/plugin": "workspace:*"` to the `dependencies` section in `package.json`. This ensures the module is correctly linked and available for the tools to use. ## Related Issue Fixes [#2802](https://github.com/sst/opencode/issues/2802)
yindo added the pull-request label 2026-02-16 18:16:28 -05:00
yindo closed this issue 2026-02-16 18:16:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11593