Open cixtor opened 6 years ago
@cixtor
I had the EXACT same problem. I went back to the README and noticed that my package.json
did not include postcss allthough the readme said to inlcude.
After installing in my project npm install postcss
or yarn add postcss
It worked again. I really hope this helps for you too!
Thank you @rfearing I don't do JavaScript development but your solution will surely help other people.
I wanted to report this issue more as a way to warn the maintainer that there is an edge case in the code that is not being taken care of, and instead is forcing the linter to miserably crash without any hint to the user. These non-handled exceptions should be gracefully handled to offer recovery during the analysis of the code.
This issue is probably related to #47 and #50 but mine can be consistently reproduced.
Steps to Reproduce the Exception
~/file.css
~/.stylelintrc
doesn't existsCmd + A -> Delete
Code Snippet To Reproduce The Bug
Errors Generated By The Linter
Full Copy of the Exception