-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: TypeError: Cannot read property 'files' of undefined #432
Comments
@steven-gong-artos If you have a sec could you try using an earlier version of Truffle - maybe 5.0.41 - they just released 5.1.0 - it's possible behavior has changed slightly. Also, are you getting a coverage report? Is everything except for this final error working? |
@steven-gong-artos Was able to run solidity-coverage with Truffle's MetaCoin project on 5.1.0 without any problems. Do you have a reproduction case for this? Would be happy to look at it. |
@steven-gong-artos Suspect this might be caused by something similar to truffle 2419. In that case, an empty folder in the test directory triggers the error. Underlying cause is the node-dir module which solidity-coverage uses for a similar purpose. |
Hi @cgewecke, |
@steven-gong-artos I was able to reproduce your error by adding an empty folder to the migrations folder. Could you check that directory for an empty folder, remove it and see if this error goes away? |
Fix published in 0.7.0-beta.3 |
Thanks, @cgewecke , |
Hi,
I'm using solidity coverage with the following version:
And receives the following error message:
I am using the default values in .solcover.js file.
Is there anything I should customize to fix this issue from the default configs?
Thanks
The text was updated successfully, but these errors were encountered: