Error in plugin solidity-coverage: TypeError: Cannot read properties of undefined (reading 'events') #2659
-
Hi all, So I've installed the solidity coverage with the command "yarn add solidity-coverage --dev" and required it in the hardhat config file.
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
@EricTES Push your code to GitHub and leave a link here, It looks like a compilation issue. |
Beta Was this translation helpful? Give feedback.
-
Hey facing same issues did you arrive on any conclusion yet? @alymurtazamemon checkout I pushed my code https://github.com/Prime-AI28/solidity_hardhat/tree/master/hardhat-simple-storage |
Beta Was this translation helpful? Give feedback.
-
Hi, I have also run into the exact same error. I have deleted and reinstalled my node modules as well with no luck of resolving |
Beta Was this translation helpful? Give feedback.
-
Hi. I ran into the same issue and I fixed it with deleting solidity coverage's node_module and reinstalling an older version:
|
Beta Was this translation helpful? Give feedback.
Hey facing same issues did you arrive on any conclusion yet? @alymurtazamemon checkout I pushed my code
https://github.com/Prime-AI28/solidity_hardhat/tree/master/hardhat-simple-storage