Skip to content

fix(openclaw): add TypeScript build for OpenClaw 2026.5.4+ compatibility - #2113

Closed
tufstraka wants to merge 1 commit into
rtk-ai:developfrom
tufstraka:fix/openclaw-plugin-typescript-build
Closed

tufstraka wants to merge 1 commit into
rtk-ai:developfrom
tufstraka:fix/openclaw-plugin-typescript-build

Conversation

@tufstraka

@tufstraka tufstraka commented May 27, 2026 •

Copy link
Copy Markdown

Fixes #1719

OpenClaw 2026.5.4+ needs compiled JS for plugins — can't load .ts directly. Plugin was shipping only index.ts, so it failed on startup.

What I changed

  • tsconfig.json — new file, tells tsc to compile index.ts → index.js
  • package.json — added build script, pointed main to index.js, added typescript + @types/node as devDeps
  • README.md — updated install instructions to include the build step
  • .gitignore — ignore index.js (build artifact), node_modules/, package-lock.json

How to install (after this fix)

cd openclaw
npm install
npm run build
cp index.js openclaw.plugin.json ~/.openclaw/extensions/rtk-rewrite/
openclaw gateway restart

Tested

cd openclaw
npm install && npm run build
node -e "require('./index.js')"  # loads fine

OpenClaw 2026.5.4+ requires compiled JavaScript for plugins. The plugin
shipped only index.ts which caused load failures.

Changes:
- Add tsconfig.json to compile index.ts -> index.js (same directory)
- Update package.json with build scripts and @types/node
- Update README with build instructions
- Add openclaw/index.js to .gitignore (build artifact)

Fixes rtk-ai#1719
@tufstraka
tufstraka force-pushed the fix/openclaw-plugin-typescript-build branch from 4659d2e to a470343 Compare May 27, 2026 09:43
thehoff added a commit to thehoff/contextcrawler that referenced this pull request Jun 5, 2026
Drop the inherited OpenClaw TypeScript plugin (openclaw/) and its
entry in the supported-agents guide. One less agent surface to
maintain and audit; upstream PR rtk-ai#2113 (OpenClaw 2026.5.4+ TS build
fix) becomes not-applicable to this fork.

Decision from the 2026-06-02 upstream-triage council session (agy
flagged the orphaned plugin; the Hoff called the removal).

docs/upstream/RTK_README.md untouched — it archives what upstream
supports, not what we ship.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

@rtk-release-bot rtk-release-bot Bot added the stale label Sep 3, 2026
@rtk-release-bot

Copy link
Copy Markdown
Contributor

Closing this pull request after a prolonged period of inactivity. If this is still relevant, please ask for it to be reopened. Thank you!

@rtk-release-bot rtk-release-bot Bot closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rtk-rewrite OpenClaw plugin fails to load on OpenClaw 2026.5.4 — TypeScript-only, no compiled output

1 participant