claude-code-webui icon indicating copy to clipboard operation
claude-code-webui copied to clipboard

[Bug]: Syntax Error with latest claude code version

Open martinjuhasz opened this issue 1 year ago • 1 comments

Issue Type

  • [x] 🐛 bug - Bug fix (non-breaking change which fixes an issue)
  • [ ] 🖥️ backend - Backend-related issue
  • [ ] 🎨 frontend - Frontend-related issue

Component

Claude CLI Integration

Bug Description

After installing claude code webui throught npm i get the following error when trying to launch:

❯ claude --version
1.0.98 (Claude Code)
❯ claude-code-webui --version
file:///Users/martinjuhasz/Library/pnpm/global/5/.pnpm/[email protected]_@[email protected]/node_modules/claude-code-webui/dist/cli/node.js:2153
  AbortError,
  ^^^^^^^^^^
SyntaxError: The requested module '@anthropic-ai/claude-code' does not provide an export named 'AbortError'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:175:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:258:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

Node.js v20.19.4

Steps to Reproduce

install latest version of claude code install latest version of claude-code-webui launch claude-code-webui

Expected Behavior

it should work

Actual Behavior

it doesnt launch

Operating System

macOS (Intel)

Installation Method

npm install -g @anthropic-ai/claude-code-webui

Node.js Version

v20.19.4

Deno Version (if applicable)

No response

Claude CLI Version

1.0.98

Claude CLI Installation Path

No response

Browser (for frontend issues)

No response

Console Logs/Error Messages


Configuration


Additional Context

No response

Checklist

  • [x] I have searched existing issues to make sure this is not a duplicate
  • [x] I have provided all the required information above
  • [x] I have removed any sensitive information from logs and configuration

martinjuhasz avatar Sep 01 '25 13:09 martinjuhasz

We found that AbortError is no longer available in recent SDKs, so we implemented a workaround in #269. This issue is resolved in v0.1.51 which includes that fix.

sugyan avatar Sep 06 '25 15:09 sugyan