Cannot find package 'jose' #4832

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

Originally created by @moymat on GitHub (Jan 12, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Hi !
Since the last update (1.1.14), I get a blank terminal when I open OpenCode. The logs have this lines :

ERROR 2026-01-12T08:32:55 +808ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find package 'jose' from '/home/moymat/.cache/opencode/node_modules/@openauthjs/openauth/dist/esm/pkce.js'","level":"error","specifier":"jose","importKind":"import-statement","referrer":"/home/moymat/.cache/opencode/node_modules/@openauthjs/openauth/dist/esm/pkce.js"} exception

When I try to re-login, I get this after selecting the provider :

❯ opencode auth login

┌  Add credential
│
◇  Select provider
│  OpenCode Zen
Error: Unexpected error, check log file at /home/moymat/.local/share/opencode/log/2026-01-12T084558.log for more details

error: Cannot find package 'jose' from '/home/moymat/.cache/opencode/node_modules/@openauthjs/openauth/dist/esm/pkce.js'

Downgrading to v1.1.13 fixes it.

Plugins

None

OpenCode version

1.1.14

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Fedora

Terminal

Ghostty

Originally created by @moymat on GitHub (Jan 12, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Hi ! Since the last update (1.1.14), I get a blank terminal when I open OpenCode. The logs have this lines : ``` ERROR 2026-01-12T08:32:55 +808ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find package 'jose' from '/home/moymat/.cache/opencode/node_modules/@openauthjs/openauth/dist/esm/pkce.js'","level":"error","specifier":"jose","importKind":"import-statement","referrer":"/home/moymat/.cache/opencode/node_modules/@openauthjs/openauth/dist/esm/pkce.js"} exception ``` When I try to re-login, I get this after selecting the provider : ``` ❯ opencode auth login ┌ Add credential │ ◇ Select provider │ OpenCode Zen Error: Unexpected error, check log file at /home/moymat/.local/share/opencode/log/2026-01-12T084558.log for more details error: Cannot find package 'jose' from '/home/moymat/.cache/opencode/node_modules/@openauthjs/openauth/dist/esm/pkce.js' ``` Downgrading to v1.1.13 fixes it. ### Plugins None ### OpenCode version 1.1.14 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Fedora ### Terminal Ghostty
yindo added the bug label 2026-02-16 17:45:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 12, 2026):

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

  • #7249: Critical Crash on Linux (Ubuntu): 'jose' dependency corrupted - reports the exact same jose package resolution error
  • #6935: Windows: OpenCode fails to start - Cannot find module '@openauthjs/openauth/pkce' - same root cause with @openauthjs/openauth dependency
  • #7934: On macOS 12.6.8 M1, the desktop version displays a blank page after installation - reports blank terminal/page in v1.1.14 (same version as this issue)

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

@github-actions[bot] commented on GitHub (Jan 12, 2026): This issue might be a duplicate of existing issues. Please check: - #7249: Critical Crash on Linux (Ubuntu): 'jose' dependency corrupted - reports the exact same jose package resolution error - #6935: Windows: OpenCode fails to start - Cannot find module '@openauthjs/openauth/pkce' - same root cause with @openauthjs/openauth dependency - #7934: On macOS 12.6.8 M1, the desktop version displays a blank page after installation - reports blank terminal/page in v1.1.14 (same version as this issue) Feel free to ignore if none of these address your specific case.
Author
Owner

@moymat commented on GitHub (Jan 12, 2026):

After downgrading it to v1.1.13 (npm i -g opencode-ai@1.1.13) then back to the latest one (npm i -g opencode-ai@latest), the issue has gone away.

@moymat commented on GitHub (Jan 12, 2026): After downgrading it to v1.1.13 (`npm i -g opencode-ai@1.1.13`) then back to the latest one (`npm i -g opencode-ai@latest`), the issue has gone away.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4832