Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this support CommonJS? #4

Open
whitedotjsx opened this issue May 22, 2024 · 1 comment
Open

Does this support CommonJS? #4

whitedotjsx opened this issue May 22, 2024 · 1 comment

Comments

@whitedotjsx
Copy link

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
@jdesrosiers
Copy link
Contributor

No. It's designed for ESM only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants