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
Cannot find module '@opencode-ai/sdk' on clean repo clone when running bun run packages/opencode/src/index after bun install #1579
Running into this recently as well. I have previously been able to run via bun run packages/opencode/src/index.ts without a problem until pulling in the more recent updates.
This is the most recent commit that works for me: ae6e47b
So it seems like something in ca03127 broke this functionality for me.
Yes, while running bun test it fails with "error: Cannot find module '@opencode-ai/sdk' from '/home/lschneid/workspace/agents/opencode/packages/opencode/src/plugin/index.ts'"
For the bun run dev, creating a symlink solved the issue (not for the test though):
@jordyvandomselaar can you reopen this issue? I would expect the instructions in the readme to work. Whether that be updating the readme or fixing the bun run ... command
Activity
jordyvandomselaar commentedon Aug 3, 2025
bun run devworks fine. I'll use that instead.schneiderlo commentedon Aug 6, 2025
I tried with
bun run devbut go the same error:It was after a fresh clone and
bun installBSteffaniak commentedon Aug 6, 2025
Running into this recently as well. I have previously been able to run via
bun run packages/opencode/src/index.tswithout a problem until pulling in the more recent updates.This is the most recent commit that works for me: ae6e47b
So it seems like something in ca03127 broke this functionality for me.
schneiderlo commentedon Aug 6, 2025
Yes, while running bun test it fails with "error: Cannot find module '@opencode-ai/sdk' from '/home/lschneid/workspace/agents/opencode/packages/opencode/src/plugin/index.ts'"
For the bun run dev, creating a symlink solved the issue (not for the test though):
BSteffaniak commentedon Aug 6, 2025
@jordyvandomselaar can you reopen this issue? I would expect the instructions in the readme to work. Whether that be updating the readme or fixing the
bun run ...commandBSteffaniak commentedon Aug 6, 2025
Looks like the readme was just updated to reference using
bun dev, so my above comment can be disregarded.rekram1-node commentedon Aug 6, 2025
Haha yeah I saw your comment and updated it lol @BSteffaniak
schneiderlo commentedon Aug 6, 2025
What about bun test?
rekram1-node commentedon Aug 6, 2025
just do
bun test --conditions=developmentschneiderlo commentedon Aug 6, 2025
Works like a charm thank you! :)
simplify desktop preview workflows (anomalyco#1579)