Error when running the hardhat - coverage task #2910
Replies: 3 comments 5 replies
-
@harrisonsmith32 Leave the tag no to that discussion, I will see it. You should use a different version of it because sometimes versions do these issues, so try a different one. |
Beta Was this translation helpful? Give feedback.
-
Please push to GitHub. I will try doing the same to look into it. |
Beta Was this translation helpful? Give feedback.
-
I'd been having this issue too and just got it to work by switching to the LTS node version (used NVM to switch to node version 16.17.1) and then installing solidity coverage via npm instead of yarn. No idea why this worked, but hope it helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am receiving an error when attempting to run
yarn hardhat coverage
in the terminal. The error is "Error in plugin solidity-coverage: TypeError: Cannot read properties of undefined (reading 'events')".I found another discussion thread with the same error and the tagged solution was to uninstall and reinstall the
node_modules
folder, which I believe I successfully completed and it did not resolve the issue at hand. I left a comment under that thread, but have not yet heard back. If anybody could assist I would greatly appreciate it!Beta Was this translation helpful? Give feedback.
All reactions