solidity coverage error : Error in plugin solidity-coverage: TypeError: cur._node._vm.on is not a function #2333
-
when running yarn hardhat coverage I am getting below error: Error in plugin solidity-coverage: TypeError: cur._node._vm.on is not a function I am running redhat 2.11.0. can someone help please. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@behzadz1 This seems the latest filed issue on their repo. Try this version and let me know |
Beta Was this translation helpful? Give feedback.
-
@behzadz1 : I know what this problem is, I have solved it in this disscussion as well #2322 Its the issue with the new hardhat version causing a lot of problems : Just use this hardhat older version I have mention below, It will definitely fix your issue : You can add that, by the following command : Let me know if your issue is resolved! |
Beta Was this translation helpful? Give feedback.
-
@behzadz1 It appears the latest version of hardhat has this issue. Try installing a previous version of hardhat (version 2.10.1 or version 2.10.2) Run |
Beta Was this translation helpful? Give feedback.
@behzadz1 : I know what this problem is, I have solved it in this disscussion as well #2322
Its the issue with the new hardhat version causing a lot of problems :
Just use this hardhat older version I have mention below, It will definitely fix your issue :
You can add that, by the following command :
yarn add --dev hardhat@2.10.2
Let me know if your issue is resolved!