Repository navigation
fix(deps): add missing @opencode-ai/plugin to dependencies - #5797
rekram1-node merged 6 commits into
Conversation
|
Btw this won't fix that persons issue, they had an in general request for:
That would mean no requirement of this dep at all (not possible rn) ALso if u run opencode in opencode repo itll auto install this dep, so idk if we need to include in root package.json? |
|
I encountered a Cause: Proposed Solution: "dependencies": {
...
"@opencode-ai/plugin": "workspace:*",
"@opencode-ai/script": "workspace:*",
"@opencode-ai/sdk": "workspace:*",
...
}Verification: Best regards,
|
I'm on NixOS, so naturally the automatic install fails because of the readonly filesystem and opencode will not work anymore when a plugin is installed. For every message I just get:
So I would be really greatful if this was included so I can use plugins on NixOS Edit: I'm not sure anymore if this would solve my problem or if the reason why it cannot find the plugin is that my plugin file can just not find the already installed plugin |
|
this would only fix ur issue if u are running in the opencode repo, we need to figure out better solution for elsewhere |
Description
This PR fixes a
Cannot find moduleerror encountered when running tools that rely on@opencode-ai/plugin.The Problem
As described in issue #2802, running scripts like
.opencode/tool/github-triage.tsfails with the following error because the plugin package was missing from the dependencies list:The Fix
I have added
"@opencode-ai/plugin": "workspace:*"to thedependenciessection inpackage.json. This ensures the module is correctly linked and available for the tools to use.Related Issue
Fixes #2802