Skip to content

Does this support CommonJS? #4

@whitedotjsx

Description

@whitedotjsx
Error [ERR_REQUIRE_ESM]: require() of ES Module /mnt/c/Code/Asuka/node_modules/@hyperjump/json-schema/stable/index.js from /mnt/c/Code/Asuka/src/tests/examples/tempCodeRunnerFile.js not supported.
Instead change the require of index.js in /mnt/c/Code/Asuka/src/tests/examples/tempCodeRunnerFile.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/mnt/c/Code/Asuka/src/tests/examples/tempCodeRunnerFile.js:2:19) {
  code: 'ERR_REQUIRE_ESM'
}

Node.js v20.13.1

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