Skip to content

Bug: tavily extension fails to load - typebox missing collapse.mjs #70837

@visionzhang-prog

Description

@visionzhang-prog

Bug Report

OpenClaw version: 2026.4.22
Error: [tools] read failed: EISDIR / avily failed to load

Description

The avily extension fails to load at startup with the following error:

[plugins] tavily failed to load from C:\Users\Administrator\AppData\Local\nvm\v22.22.2\node_modules\openclaw\dist\extensions\tavily\node_modules\typebox\build\type\engine\object\index.mjs: Error: Cannot find module './collapse.mjs'

Root Cause

In the bundled ypebox package, the file �uild/type/engine/object/index.mjs contains:

js export * from './collapse.mjs';

However, collapse.mjs does not exist in the compiled output. Only the type declaration file collapse.d.mts is present — the actual runtime .mjs file is missing.

Files Affected

  • openclaw/dist/extensions/tavily/node_modules/typebox/build/type/engine/object/index.mjs — exports collapse.mjs
  • openclaw/dist/extensions/tavily/node_modules/typebox/build/type/engine/object/collapse.d.mts — type declaration exists
  • openclaw/dist/extensions/tavily/node_modules/typebox/build/type/engine/object/collapse.mjs — MISSING

Impact

  • Gateway starts but avily extension fails to load
  • Tavily web search is unavailable
  • Other search methods (Brave web_search) work fine
  • Not a critical failure, but a build/compilation oversight

Suggested Fix

  1. Ensure collapse.mjs is included in the typebox build output, OR
  2. Temporarily remove the �xport * from './collapse.mjs' line from index.mjs if CollapseToObject is not actively used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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