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
TypeError: rangeData.all is not iterable needlessDisables.js:61:33 #5092
Comments
Please use issue template. We can't help with these details. |
Hi @nex3 , can you please take a look at the issue as you were the author of the PR? Thanks. |
This isn't enough info for me to reproduce. From a visual inspection of the code, it looks like stylelint/lib/assignDisabledRanges.js Lines 51 to 59 in 5601902
If you can provide me with a stylelint config and CSS file that consistently reproduces this, I can dive in further. |
Closing the issue as I cannot repro it now. |
FYI: After my investigation, I figured out that the issue was causing 'ignoreFiles' in the configuration. For some reason, the new version of stylelint was producing this error, when the old version was working normally. Once I removed ignoreFiles, and moved the patterns to .stylelintignore instead, the issue was gone. Not sure why ignoreFiles is causing this behavior. |
This problem still exists. As soon as I added |
Again, if you can provide me a minimal reproduction of this issue, I can investigate further. |
From a visual inspection of the code, I've found at least 3 places where disabledRanges is not initialized as you expect: Lines 39 to 42 in a48f2ae
Lines 68 to 72 in 0a2e727
Lines 108 to 114 in 0a2e727
|
Reopening as the issue is reported by multiple people, but for me the workaround was to move the patterns to .stylelintignore |
@olderor would adding "disabledRanges": {
"all": [],
} to lintSource.js and report.js fix the problem? If not, would adding this piece of information to the documentation fix this issue? |
The issue in version 13.8.0 (13.7.2 was working correctly).
The error:
Probably some regression introduced in this PR #4973
The version of node I use: 12.18.1
No specific rules, the issue seems to be in the core.
No code is needed, just run stylelint.
npx stylelint \"**/*.scss\" --max-warnings 0 --risd --rdd --rd
The text was updated successfully, but these errors were encountered: