openclaw - 💡(How to fix) Fix [Bug]: v2026.3.11 update fails on live git install at /usr/lib/node_modules/openclaw, but succeeds in clean checkout [2 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#43712Fetched 2026-04-08 00:17:16
View on GitHub
Comments
2
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
commented ×2

Updating OpenClaw from 2026.3.8 to v2026.3.11 failed on my live Linux git install at /usr/lib/node_modules/openclaw, even though the same tag built successfully in a clean throwaway checkout on the same machine.

So this looks less like a bad release tag and more like an update/install-path edge case.

Error Message

[plugins] telegram failed to load from /usr/lib/node_modules/openclaw/extensions/telegram/index.ts: TypeError: (0 , _compat.createScopedDmSecurityResolver) is not a function

Root Cause

  1. Checked update status and saw 2026.3.11 available.
  2. First update attempt was skipped because the repo looked dirty due to a stray file:
    • ?? openclaw-2026.3.8.tgz
  3. Removed that file and retried.
  4. Updater fetched and checked out v2026.3.11.
  5. pnpm install succeeded.
  6. pnpm build failed.

Code Example

vendor/a2ui/renderers/lit/src/0.8/ui/datetime-input.ts(171,3): error TS2742: The inferred type of 'render' cannot be named without a reference to 'openclaw/node_modules/lit'. This is likely not portable. A type annotation is necessary.
vendor/a2ui/renderers/lit/src/0.8/ui/directives/markdown.ts(49,3): error TS2742: The inferred type of 'update' cannot be named without a reference to 'openclaw/node_modules/lit/directive.js'. This is likely not portable. A type annotation is necessary.
...
A2UI bundling failed. Re-run with: pnpm canvas:a2ui:bundle
ELIFECYCLE Command failed with exit code 1.

---

error TS5055: Cannot write file '/usr/lib/node_modules/openclaw/vendor/a2ui/renderers/lit/dist/src/0.8/core.d.ts' because it would overwrite input file.
error TS5055: Cannot write file '/usr/lib/node_modules/openclaw/vendor/a2ui/renderers/lit/dist/src/0.8/data/guards.d.ts' because it would overwrite input file.
...
vendor/a2ui/renderers/lit/src/0.8/ui/audio.ts(31,10): error TS2742: The inferred type of 'styles' cannot be named without a reference to 'openclaw/node_modules/lit'. This is likely not portable. A type annotation is necessary.
...
A2UI bundling failed. Re-run with: pnpm canvas:a2ui:bundle
If this persists, verify pnpm deps and try again.

---

[plugins] telegram failed to load from /usr/lib/node_modules/openclaw/extensions/telegram/index.ts:
TypeError: (0 , _compat.createScopedDmSecurityResolver) is not a function
RAW_BUFFERClick to expand / collapse

Summary

Updating OpenClaw from 2026.3.8 to v2026.3.11 failed on my live Linux git install at /usr/lib/node_modules/openclaw, even though the same tag built successfully in a clean throwaway checkout on the same machine.

So this looks less like a bad release tag and more like an update/install-path edge case.

Environment

  • OpenClaw before update: 2026.3.8
  • Target version: v2026.3.11
  • OS: Linux 6.8.0-101-generic x64
  • Node: 22.22.0
  • Install path: /usr/lib/node_modules/openclaw
  • Install style: git checkout + pnpm build/update flow

What I did

On the live install:

  1. Checked update status and saw 2026.3.11 available.
  2. First update attempt was skipped because the repo looked dirty due to a stray file:
    • ?? openclaw-2026.3.8.tgz
  3. Removed that file and retried.
  4. Updater fetched and checked out v2026.3.11.
  5. pnpm install succeeded.
  6. pnpm build failed.

After that, I tried the same tag in a clean throwaway worktree on the same machine:

  1. git worktree add --detach /tmp/openclaw-audit v2026.3.11
  2. pnpm install
  3. pnpm ui:build
  4. pnpm build

That build completed successfully.

Actual behavior on live install

On the live install path, I hit two kinds of failures.

First, with the normal updater/build path I saw A2UI/lit TS2742 errors like:

vendor/a2ui/renderers/lit/src/0.8/ui/datetime-input.ts(171,3): error TS2742: The inferred type of 'render' cannot be named without a reference to 'openclaw/node_modules/lit'. This is likely not portable. A type annotation is necessary.
vendor/a2ui/renderers/lit/src/0.8/ui/directives/markdown.ts(49,3): error TS2742: The inferred type of 'update' cannot be named without a reference to 'openclaw/node_modules/lit/directive.js'. This is likely not portable. A type annotation is necessary.
...
A2UI bundling failed. Re-run with: pnpm canvas:a2ui:bundle
ELIFECYCLE Command failed with exit code 1.

Then, after retrying with the source-style sequence (pnpm install && pnpm ui:build && pnpm build) directly in /usr/lib/node_modules/openclaw, the build still failed, but now with TS5055 overwrite errors first, followed by the same A2UI/lit TS2742 errors:

error TS5055: Cannot write file '/usr/lib/node_modules/openclaw/vendor/a2ui/renderers/lit/dist/src/0.8/core.d.ts' because it would overwrite input file.
error TS5055: Cannot write file '/usr/lib/node_modules/openclaw/vendor/a2ui/renderers/lit/dist/src/0.8/data/guards.d.ts' because it would overwrite input file.
...
vendor/a2ui/renderers/lit/src/0.8/ui/audio.ts(31,10): error TS2742: The inferred type of 'styles' cannot be named without a reference to 'openclaw/node_modules/lit'. This is likely not portable. A type annotation is necessary.
...
A2UI bundling failed. Re-run with: pnpm canvas:a2ui:bundle
If this persists, verify pnpm deps and try again.

While the files were briefly on v2026.3.11, I also saw a runtime/plugin mismatch symptom:

[plugins] telegram failed to load from /usr/lib/node_modules/openclaw/extensions/telegram/index.ts:
TypeError: (0 , _compat.createScopedDmSecurityResolver) is not a function

Expected behavior

Updating a git install at /usr/lib/node_modules/openclaw to v2026.3.11 should succeed, or the updater should detect/clean the state that causes this path-specific build failure.

What I did to recover

I rolled the live install back to 2026.3.8, ran pnpm install, and the system is working again.

Why I think this is useful

This does not reproduce in a clean throwaway checkout on the same host, which suggests the issue is specifically tied to:

  • updating an existing git install in place
  • the /usr/lib/node_modules/openclaw install location
  • stale/generated A2UI artifacts or other path-sensitive build state

Happy to gather more data if there’s a preferred cleanup/debug path for git installs.

extent analysis

Fix Plan

To resolve the issue with updating OpenClaw from 2026.3.8 to v2026.3.11, follow these steps:

  1. Clean the existing install: Remove any stale or generated files that might be causing conflicts.
    • Run pnpm run clean or manually delete the node_modules directory and any generated files.
  2. Update dependencies: Ensure all dependencies are up-to-date and compatible with the new version.
    • Run pnpm install to update dependencies.
  3. Build with specific flags: Try building with specific flags to avoid overwrite errors.
    • Run pnpm build --force to force the build and overwrite any existing files.
  4. Verify A2UI artifacts: Ensure A2UI artifacts are properly generated and bundled.
    • Run pnpm canvas:a2ui:bundle to re-bundle A2UI artifacts.

Example code changes (if necessary):

// In your build script, add the --force flag
"build": "pnpm build --force",

Verification

To verify the fix worked:

  1. Check the build logs for any errors.
  2. Verify that the update was successful by checking the version number.
  3. Test the application to ensure it's working as expected.

Extra Tips

  • Regularly clean and update your dependencies to avoid stale files and version conflicts.
  • Consider using a version manager like pnpm or yarn to manage dependencies and avoid issues with npm.
  • If issues persist, try resetting the node_modules directory and re-running pnpm install.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Updating a git install at /usr/lib/node_modules/openclaw to v2026.3.11 should succeed, or the updater should detect/clean the state that causes this path-specific build failure.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING