Skip to content

[Bug]: msteams plugin missing @microsoft/agents-hosting dependencies after npm install #9357

@ACSKamloops

Description

@ACSKamloops

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

  1. Install OpenClaw globally: npm install -g openclaw@latest
  2. Configure msteams channel in openclaw.json
  3. Start gateway: openclaw gateway
  4. 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.3

Expected 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:

  1. Hoist msteams dependencies to the main package.json, or
  2. Replace workspace:* with * in published npm builds, or
  3. Bundle the Microsoft SDK into the extension

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions