Fix TypeError error "Cannot destructure property..." in custom-property-pattern #5972
Labels
status: ready to implement
is ready to be worked on by someone
type: bug
a problem with a feature or rule
What steps are needed to reproduce the bug?
Demo
This is a regression affecting everyone using the standard config.
What Stylelint configuration is needed to reproduce the bug?
How did you run Stylelint?
Demo
Which version of Stylelint are you using?
14.6.0
What did you expect to happen?
No TypeError
What actually happened?
TypeError
Does the bug relate to non-standard syntax?
No
Proposal to fix the bug
Check that
nodes
is available before destructuring.Follow-up PR to add "empty functions" to commonly overlooked edge cases.
The text was updated successfully, but these errors were encountered: