Using hardhat with ES module #2979
Unanswered
wbt
asked this question in
Troubleshooting
Replies: 1 comment 1 reply
-
Unfortunately, hardhat doesn't work with ESM yet. Adding support is a mid-term goal, but it requires some drastic changes. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For reasons stronger than what I can easily change just to use hardhat, the package.json in my project has
"type": "module",
and when trying to run hardhat, I get this error:It looks like this is due to a require() statement in Hardhat code, not in application code or anywhere in my project, and the fix would have to be done in Hardhat code.
Is it possible to use Hardhat in this project, or should I just use Truffle instead?
Beta Was this translation helpful? Give feedback.
All reactions