Skip to content

Plugin fails to load: Cannot find module internal/tslib.js #37

@changray7

Description

@changray7

Bug Description

Plugin fails to load with error: Cannot find module './internal/tslib.js'

Environment

  • OpenClaw version: 2026.3.23-2
  • Plugin version: 2.0.22
  • Node.js environment
  • Windows

Steps to Reproduce

  1. Install plugin via: openclaw plugins install @supermemory/openclaw-supermemory
  2. Add to plugins.allow list
  3. Run openclaw plugins list or openclaw status

Error Details

The error occurs when loading the Supermemory SDK:

Error: Cannot find module './internal/tslib.js'
at C:\Users\Administrator.openclaw\extensions\openclaw-supermemory\node_modules\supermemory\client.js

The supermemory package client.js uses require('./internal/tslib.js') but the path resolution fails within the OpenClaw plugin context. The file does exist at node_modules/supermemory/internal/tslib.js.

Expected Behavior

Plugin should load successfully and connect to Supermemory API using the configured API key.

Additional Context

  • API Key is configured via SUPERMEMORY_OPENCLAW_API_KEY environment variable
  • The tslib module exists at: node_modules/tslib (top level)
  • The file node_modules/supermemory/internal/tslib.js does exist but require path resolution seems incorrect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions