openclaw - 💡(How to fix) Fix Bug: Cannot find module '@larksuiteoapi/node-sdk' even without Feishu plugin installed [3 comments, 4 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#70398Fetched 2026-04-23 07:25:19
View on GitHub
Comments
3
Participants
4
Timeline
6
Reactions
0
Author
Timeline (top)
commented ×3subscribed ×2closed ×1

Error Message

Error: Cannot find module '@larksuiteoapi/node-sdk' Require stack:

  • /home/didi88ss/.nvm/versions/node/v22.17.1/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Code Example

Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/didi88ss/.nvm/versions/node/v22.17.1/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

---

Model/auth provider
Ollama
Ollama mode
Cloud only
Ollama API key
│ xxxxxxxx
Default model
│ ollama/glm-5.1:cloud
Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/didi88ss/.nvm/versions/node/v22.17.1/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js
RAW_BUFFERClick to expand / collapse

Bug Description

When adding an Ollama model in OpenClaw settings, an error is thrown:

Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/didi88ss/.nvm/versions/node/v22.17.1/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Important: The user does NOT have the Feishu (飞书) plugin installed. This error appears even when trying to add a basic Ollama model.

Steps to Reproduce

  1. Open OpenClaw settings
  2. Navigate to Models/Providers
  3. Try to add an Ollama model
  4. Error is thrown before model can be configured

Environment

  • OpenClaw version: (latest from npm)
  • Node.js version: v22.17.1
  • OS: Linux (Ubuntu/Debian)
  • Installation method: npm global (npm install -g openclaw)

Screenshots / Error Details

◇ Model/auth provider
│ Ollama
◇ Ollama mode
│ Cloud only
◇ Ollama API key
│ xxxxxxxx
◇ Default model
│ ollama/glm-5.1:cloud
Error: Cannot find module '@larksuiteoapi/node-sdk'
Require stack:
- /home/didi88ss/.nvm/versions/node/v22.17.1/lib/node_modules/openclaw/dist/extensions/feishu/client-yWGpoGkZ.js

Expected Behavior

The Feishu module should only be loaded/required when the Feishu plugin is actually installed and enabled. Since no Feishu plugin is installed, this module should not cause a blocking error when configuring other providers like Ollama.

Suggested Fix

Make the @larksuiteoapi/node-sdk module conditional — only require/import it when the Feishu extension is actually loaded. Use dynamic require or lazy import so the absence of the package doesn't break unrelated functionality.

extent analysis

TL;DR

Make the @larksuiteoapi/node-sdk module conditional to only load when the Feishu extension is actually installed and enabled.

Guidance

  • Verify that the Feishu plugin is not installed by checking the OpenClaw settings and extensions list.
  • Check the OpenClaw code to ensure that the @larksuiteoapi/node-sdk module is being required conditionally, using dynamic require or lazy import.
  • Consider adding a check to ensure that the Feishu extension is loaded before attempting to require the @larksuiteoapi/node-sdk module.
  • Review the error handling to prevent the error from blocking unrelated functionality, such as configuring other providers like Ollama.

Example

// Example of conditional require using dynamic require
if (feishuExtensionLoaded) {
  const { default: feishuClient } = require('@larksuiteoapi/node-sdk');
  // Use feishuClient
} else {
  // Handle case where Feishu extension is not loaded
}

Notes

The suggested fix assumes that the issue is due to the unconditional requirement of the @larksuiteoapi/node-sdk module. However, without access to the OpenClaw codebase, it is uncertain whether this is the root cause of the issue.

Recommendation

Apply the suggested fix to make the @larksuiteoapi/node-sdk module conditional, as this will prevent the error from blocking unrelated functionality. This approach allows for a more robust and flexible solution that can handle different extension configurations.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING