Not enough errors explanation
See original GitHub issueI am a new to postcss and I have a difficulties to debug postcss exceptions.
For example I spent many time to understand this exception:
I can get it on if I forget to set right path to mixin file in config or forgot add options like here
require('postcss-mixins')({ mixinsDir: path.join(__dirname, '/src/css/mixins/') }),
The problem was I forgot to remove (
)
from mixin name @add-mixin media (840)
to @add-mixin media 840
But exception on the screenshot is the same for all cases. I suppose it is not dev friendly or I don’t understand something.
The second. Is there css validation option in postcss? I compile wrong css file (when mixin are not worked i got nested properties) but postcss doesnot show me any info about it. I suppose I can do in a mistake in setting in future and will not catch it
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Released in
postcss-mixins
8.0OK, I did it on my own https://github.com/postcss/postcss-mixins/commit/d173702a1a9078f0ad4a88b2f4b3b372c14aa560