TypeError: cannot ready property 'errorCount' of undefined
See original GitHub issueDescription
Happens on Windows 10 version 1909 when running solhint
as a local dependency installed with yarn 1.22.4.
Happens in both PowerShell and Git’s Mingw64.
Steps to Reproduce
- Clone https://github.com/paulrberg/solidity-template
- Install dependencies with yarn
- Run
yarn lint:sol
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Cannot Read Property of Undefined in JavaScript - Rollbar
What Causes TypeError: Cannot Read Property of Undefined ... Undefined means that a variable has been declared but has not been assigned a...
Read more >Uncaught TypeError: Cannot read property of undefined In
JavaScript TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator or...
Read more >How to Avoid the Infamous "Cannot read properties of ... - Bitovi
That error message is telling you the function is returning undefined implicitly, but its return type does not include undefined in it. Awesome!...
Read more >Cannot read properties of undefined (reading 'length') - TrackJS
This error can be thrown for a lot of reasons, as it is incredibly common to reference the length property of string or...
Read more >Error: Cannot read property 'count' of undefined. Databinding ...
Error : Cannot read property 'count' of undefined. Databinding Web API Angular 2 ; ngOnInit() { ; this.selectOptions = { persistSelection: true };....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found the problem - my
.solhintignore
file was causing all the input files to be ignored, in which case,reports
ends up being[]
, thereforereports[0]
is obviouslyundefined
. So the bug is in the line 97 above incorrectly assuming thatreports
will always be non-empty. Yet another case of the billion dollar mistake …Haha, it’s temporary! My Mac had a hardware fault and I left it at the repair store.