Skip to content

solidity coverage error : Error in plugin solidity-coverage: TypeError: cur._node._vm.on is not a function #2333

Answered by RoboCrypter
behzadz1 asked this question in Q&A
Discussion options

You must be logged in to vote

@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!

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@behzadz1
Comment options

@alymurtazamemon
Comment options

Comment options

You must be logged in to vote
1 reply
@RoboCrypter
Comment options

Answer selected by behzadz1
Comment options

You must be logged in to vote
1 reply
@behzadz1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants