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
+1 didn't have a package.json in my ~/.cache/opencode either after clear cache and fresh install. had to npm init and npm i @ai-sdk/anthropic@beta in the cache folder. MacOS, opencode version = 0.2.30
Activity
rkunnamp commentedon Jul 7, 2025
encountered the same error . Sonnet suggested the following in packages/opencode/src/provider/provider.ts
-const mod = await import(await BunProc.install(pkg, "latest"))
+const mod = await import(await BunProc.install(pkg, "latest")).catch(async () => {
+// Fallback: try importing by package name instead of path
+return await import(pkg)
+})
gitfudge0 commentedon Jul 11, 2025
+1 for not finding @aws-sdk/credential-providers
franklintarter commentedon Jul 11, 2025
+1 didn't have a package.json in my ~/.cache/opencode either after clear cache and fresh install. had to
npm initandnpm i @ai-sdk/anthropic@betain the cache folder. MacOS, opencode version = 0.2.30rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
perf(hooks): move post-edit-format and post-edit-typecheck to strict-…
perf(hooks): batch format+typecheck at Stop instead of per Edit (anom…
fix: prevent session loss when switching workspaces (anomalyco#790)