You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
error: Cannot find module '@opencode-ai/plugin' from #5860
Both issues describe the same root cause: module resolution errors with @opencode-ai/* packages during local development setup (clone repo → bun install → bun dev). The issue appears to be related to plugin logic in packages/opencode/src/plugin/index.ts importing @opencode-ai/sdk which does not resolve without the SDK being built first.
Feel free to ignore if this is a different scenario from these existing issues.
ok found the issue.
i've opencode dotfiles in Downloads. e.g., ~/Downloads/opencode/tool/webfetch.ts
which is symlinked to ~/.config/opencode/...
i bun install node_modules in symlink dir not dotfiles dir. for that reason tool webfetch.ts imports couldn't resolve opencode-ai/plugin
好的,找到了问题所在。我在下载中设置了Opencode点文件。例如,它在 symlink dir 里与 i bun 安装关联,而不是 dotfiles dir。因此工具导入无法解析~/Downloads/opencode/tool/webfetch.ts``~/.config/opencode/...``node_modules``webfetch.ts``opencode-ai/plugin
Activity
github-actions commentedon Dec 20, 2025
This issue might be a duplicate of existing issues. Please check:
Both issues describe the same root cause: module resolution errors with @opencode-ai/* packages during local development setup (clone repo → bun install → bun dev). The issue appears to be related to plugin logic in packages/opencode/src/plugin/index.ts importing @opencode-ai/sdk which does not resolve without the SDK being built first.
Feel free to ignore if this is a different scenario from these existing issues.
rekram1-node commentedon Dec 20, 2025
can u do
opencode run hello --print-logs
korade-krushna commentedon Dec 20, 2025
I'm running this in source code repo of opencode
bun install
bun dev
I have not install opencode yet
shekohex commentedon Dec 21, 2025
Maybe related? shekohex/opencode-google-antigravity-auth#5
rakibdev commentedon Dec 21, 2025
ok found the issue.
i've opencode dotfiles in Downloads. e.g.,
~/Downloads/opencode/tool/webfetch.tswhich is symlinked to
~/.config/opencode/...i bun install
node_modulesin symlink dir not dotfiles dir. for that reason toolwebfetch.tsimports couldn't resolveopencode-ai/pluginmiouluo commentedon Feb 11, 2026
rm
/.config/opencode/Downloads/opencodeexport OPENCODE_CONFIG_DIR=
opencode serve --hostname 0.0.0.0 --port 4096
matthieu-vergne commentedon Apr 6, 2026
I have the issue when having the complete tools folder being a symlink:
When running opencode web and requesting to call the tool, it says:
Cannot find module '@opencode-ai/plugin' from 'path/to/tools/foo.ts'
opencode v1.3.14 (displayed on the web interface, although opencode upgrade tells me I already have 1.3.15 installed).
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.