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

hardhat-tracer 2.3.4 fails #49

Closed
k06a opened this issue Jun 5, 2023 · 7 comments
Closed

hardhat-tracer 2.3.4 fails #49

k06a opened this issue Jun 5, 2023 · 7 comments

Comments

@k06a
Copy link
Contributor

k06a commented Jun 5, 2023

Updated hardhat-tracer from 2.2.2 to 2.3.4:

An unexpected error occurred:

DOMException [DataCloneError]: #<Object> could not be cloned.
    at new DOMException (node:internal/per_context/domexception:53:5)
    at structuredClone (node:internal/structured_clone:23:17)
    at /Users/k06a/Projects/address-token/node_modules/@ungap/structured-clone/cjs/index.js:21:46
    at /Users/k06a/Projects/address-token/node_modules/hardhat-tracer/src/extend/config.ts:22:45
    at loadConfigAndTasks (/Users/k06a/Projects/address-token/node_modules/hardhat/src/internal/core/config/config-loading.ts:122:5)
    at main (/Users/k06a/Projects/address-token/node_modules/hardhat/src/internal/cli/cli.ts:200:62)
    at Object.<anonymous> (/Users/k06a/Projects/address-token/node_modules/hardhat/src/internal/cli/cli.ts:377:1)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@zemse
Copy link
Owner

zemse commented Jun 6, 2023

Can you share hardhat config that was passed to tracer?

@k06a
Copy link
Contributor Author

k06a commented Jun 6, 2023

@zemse
Copy link
Owner

zemse commented Jun 6, 2023

I tried installed [email protected] on commit b426e69f of 1inch/address-token and yarn test:ci --trace seemed to work. Can you provide steps you are taking to reproduce?

This problem was introduced in 2.3.3 which should have been fixed using 48c2b17 and released in 2.3.4. Related #48 (comment).

@k06a
Copy link
Contributor Author

k06a commented Jun 11, 2023

yarn test command fails for me. Have same issue in some private repos also.

@k06a
Copy link
Contributor Author

k06a commented Jun 11, 2023

I see it works in CI: https://github.com/1inch/address-token/actions/runs/5236588609/jobs/9454232625?pr=3

But fails locally, my setup:

  • Node v18.16.0
  • Apple Silicon M1

@zemse
Copy link
Owner

zemse commented Jun 12, 2023

Seems some differences with structuredClone on newer node version, I've removed it's use. I've pushed a fix in 2.3.5, can you please try if it works?

@k06a
Copy link
Contributor Author

k06a commented Jun 12, 2023

@zemse thank you! Your fix works, version 2.3.5 is fine

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