error on startup - cannot find package tslib #2740

Closed
opened 2026-02-16 17:37:03 -05:00 by yindo · 2 comments
Owner

Originally created by @spion on GitHub (Nov 9, 2025).

Originally assigned to: @thdxr on GitHub.

Description

error: Cannot find package 'tslib' from '/home/spion/.cache/opencode/node_modules/@aws-sdk/credential-providers/dist-cjs/index.js'

OpenCode version

1.0.51

Steps to reproduce

  1. run opencode

Screenshot and/or share link

Image

Operating System

Archlinux

Terminal

Alacritty / VSCode built in terminal

Originally created by @spion on GitHub (Nov 9, 2025). Originally assigned to: @thdxr on GitHub. ### Description error: Cannot find package 'tslib' from '/home/spion/.cache/opencode/node_modules/@aws-sdk/credential-providers/dist-cjs/index.js' ### OpenCode version 1.0.51 ### Steps to reproduce 1. run opencode ### Screenshot and/or share link <img width="1353" height="156" alt="Image" src="https://github.com/user-attachments/assets/8f51d4a9-131d-455b-9906-01a075641605" /> ### Operating System Archlinux ### Terminal Alacritty / VSCode built in terminal
yindo added the opentuibug labels 2026-02-16 17:37:03 -05:00
yindo closed this issue 2026-02-16 17:37:03 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 9, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #735: Similar AWS SDK credential providers missing package error on macOS
  • #2341: opencode-copilot-auth module resolution error
  • #3350: Cannot find module error in cache directory
  • #2432: Cache directory related dependency issues

The core issue seems to be related to dependency resolution in the ~/.cache/opencode directory. You might try:

  1. Clearing the cache: rm -rf ~/.cache/opencode
  2. Reinstalling opencode
  3. Running npm install in the cache directory if it exists

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 9, 2025): This issue might be a duplicate of existing issues. Please check: - #735: Similar AWS SDK credential providers missing package error on macOS - #2341: opencode-copilot-auth module resolution error - #3350: Cannot find module error in cache directory - #2432: Cache directory related dependency issues The core issue seems to be related to dependency resolution in the ~/.cache/opencode directory. You might try: 1. Clearing the cache: `rm -rf ~/.cache/opencode` 2. Reinstalling opencode 3. Running `npm install` in the cache directory if it exists Feel free to ignore if none of these address your specific case.
Author
Owner

@spion commented on GitHub (Nov 9, 2025):

npm install did work. there might be something about bun that messes up the installation

@spion commented on GitHub (Nov 9, 2025): `npm install` did work. there might be something about bun that messes up the installation
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2740