-
-
Notifications
You must be signed in to change notification settings - Fork 69k
[Bug]: msteams plugin missing @microsoft/agents-hosting dependencies after npm install #9357
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workingstaleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Description
After installing OpenClaw globally via npm (npm install -g openclaw@latest), the msteams plugin fails to start with:
Cannot find module '@microsoft/agents-hosting'
Steps to Reproduce
- Install OpenClaw globally:
npm install -g openclaw@latest - Configure msteams channel in openclaw.json
- Start gateway:
openclaw gateway - Check logs: msteams channel exits immediately with missing module error
Root Cause
The extensions/msteams/package.json has dependencies:
{
"dependencies": {
"@microsoft/agents-hosting": "^1.2.3",
"@microsoft/agents-hosting-express": "^1.2.3",
"@microsoft/agents-hosting-extensions-teams": "^1.2.3",
"openclaw": "workspace:*"
}
}The workspace:* protocol is pnpm-specific. When installed via npm globally, npm doesn't resolve plugin dependencies, leaving the Microsoft SDK packages missing.
Workaround
Manually install the dependencies:
cd ~/.npm-global/lib/node_modules/openclaw
npm install @microsoft/agents-hosting@^1.2.3 @microsoft/agents-hosting-express@^1.2.3 @microsoft/agents-hosting-extensions-teams@^1.2.3Expected Behavior
The msteams plugin should work out of the box after npm install -g openclaw.
Environment
- OpenClaw version: 2026.2.2-3
- OS: Ubuntu 24.04
- Node: v22.22.0
- Install method: npm global
Suggested Fix
Either:
- Hoist msteams dependencies to the main package.json, or
- Replace
workspace:*with*in published npm builds, or - Bundle the Microsoft SDK into the extension
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingstaleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Give feedbackNo fields configured for issues without a type.