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

Unable to use registerCompletionHandler #3350

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

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

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

No branches or pull requests

1 participant