Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Unable to use registerCompletionHandler #3350

Closed
mxiao-cll opened this issue Nov 19, 2024 · 0 comments
Closed

Unable to use registerCompletionHandler #3350

mxiao-cll opened this issue Nov 19, 2024 · 0 comments

Comments

@mxiao-cll
Copy link

I was trying to follow this guide: https://github.com/avajs/ava/blob/main/docs/08-common-pitfalls.md#timeouts-because-a-file-failed-to-exit

Here is my change: https://github.com/smartcontractkit/ea-framework-js/pull/309/files

But received the following error:

Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/ea-framework-js/ea-framework-js/test/_force-exit.mjs not supported.
  Instead change the require of /home/runner/work/ea-framework-js/ea-framework-js/test/_force-exit.mjs to a dynamic import() which is available in all CommonJS modules.
  Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/ea-framework-js/ea-framework-js/test/_force-exit.mjs not supported.
  Instead change the require of /home/runner/work/ea-framework-js/ea-framework-js/test/_force-exit.mjs to a dynamic import() which is available in all CommonJS modules.
      at TracingChannel.traceSync (node:diagnostics_channel:315:14)
      at loadRequiredModule (file:///home/runner/work/ea-framework-js/ea-framework-js/node_modules/ava/lib/worker/base.js:198:[11](https://github.com/smartcontractkit/ea-framework-js/actions/runs/11921904641/job/33227039950?pr=309#step:5:12))
      at run (file:///home/runner/work/ea-framework-js/ea-framework-js/node_modules/ava/lib/worker/base.js:221:31)
      at async file:///home/runner/work/ea-framework-js/ea-framework-js/node_modules/ava/lib/worker/base.js:281:2

package.json: https://github.com/smartcontractkit/ea-framework-js/blob/main/package.json#L66
Invoke: https://github.com/smartcontractkit/ea-framework-js/blob/main/package.json#L66

@avajs avajs locked and limited conversation to collaborators Nov 22, 2024
@novemberborn novemberborn converted this issue into discussion #3354 Nov 22, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant