Skip to content

[Bug]:[Windows] Module initialization error: CHANNEL_IDS not iterable on startup #48832

@leoappleusid-dev

Description

@leoappleusid-dev

Bug type

Regression (worked before, now fails)

Summary

OpenClaw fails to start on Windows with module initialization error: CHANNEL_IDS is not iterable

Steps to reproduce

  1. Clone OpenClaw repository on Windows
  2. Run pnpm install
  3. Run node scripts/tsdown-build.mjs
  4. Run node scripts/runtime-postbuild.mjs
  5. Run pnpm start

Expected behavior

OpenClaw should start successfully without any initialization errors

Actual behavior

Failed to start CLI: ReferenceError: Cannot access 'CHANNEL_IDS' before initialization
at validateConfigObjectWithPluginsBase (dist/auth-profiles-zaVVXKw4.js:164584:6)

Also getting: TypeError: CHAT_CHANNEL_ORDER is not iterable
at dist/auth-profiles-zaVVXKw4.js:141759:6

OpenClaw version

2026.3.14

Operating system

Windows 10 (Build 26200)

Install method

pnpm dev

Model

N/A - This is a build/initialization issue, not model-specific

Provider / routing chain

N/A - Application fails to start before reaching this stage

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    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