Skip to content

@cortex-js/compute-engine module exports undefined/default is undefined #249

@wenjiuda

Description

@wenjiuda

Description

I am encountering a module export issue when using the @cortex-js/compute-engine package. When importing the package, the module appears empty (the default export is undefined), which prevents me from using the library's functionality properly.


Steps to Reproduce

import ComputeEngine from '@cortex-js/compute-engine';

console.log(ComputeEngine);  // Outputs: Module { default: undefined, __esModule: true, ... }

or

import * as ComputeEngine from '@cortex-js/compute-engine';

console.log(ComputeEngine);  // Also does not export correctly

Actual Result

  • The imported module does not export content correctly; the default export is undefined.
  • This results in runtime errors or inability to call library functions.

Expected Result

  • The module exports the content properly, allowing access to ComputeEngine’s methods and properties.
  • The package provides the correct export interface.

Environment

  • Compute Engine version: 0.30.2 (latest stable version on npm)
  • Usage environment: React + Webpack 5 + Module Federation (possibly relevant)
  • Node version, browser version, and other environment details (please fill in accordingly)

This is the main issue I am facing. Please assist in confirming and guiding how to resolve it. Thank you!

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