Fix TypeError for media queries in indentation #5003
Labels
status: ready to implement
is ready to be worked on by someone
syntax: sass
relates to Sass and Sass-like syntax
type: bug
a problem with a feature or rule
indentation
13.7.2
This worked previously in 9.9.0, and I verified that with this isolated example.
npx stylelint src/fancyButton.sass --syntax sass
sass
I'm using stylelint inside of webpack and this exception was really hard to debug because the only thing webpack was telling me was
ERROR in Cannot read property 'type' of undefined
without indicating the file or plugin that this exception was coming from. This is not the root issue, but it would have been nice for the stylelint webpack plugin to somehow identify itself as the thrower of the exception, as well as the file it failed to parse.Anyway, I was able to isolate the issue to the described command line setup, and I would have expected no errors.
From npx stylelint: (line number might be slightly off because I was debugging with console.logs. I believe the error comes from this line.)
From webpack (where I was originally running this):
ERROR in Cannot read property 'type' of undefined
The text was updated successfully, but these errors were encountered: