Skip to content

Exports not found #2

@MercerK

Description

@MercerK
[17:58:02 WARN]: com.caoccao.javet.exceptions.JavetExecutionException: ReferenceError: exports is not defined
[17:58:02 WARN]:        at com.caoccao.javet.interop.V8Native.execute(Native Method)

Since I transpile my code, it utilizes the exports object. This doesn't exist in current state. However, I got passed it by doing a hack, such as globalThis.exports = {}

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