PostCSS warning when Panda rules are not injected #2126
Julien-R44
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
going to explain the problem I met while trying to configure Panda :
in fact, i followed the guide for installing panda and, without noticing, when I copied and pasted the
.css
file, I removed thes
inrecipes
.and as a result, no panda style was injected. And being new to Panda, i couldn't spot the problem. spent 2 hours trying to debug a bug that didn't exist in my node modules 😅
so I'm wondering if it wouldn't be possible to have a warning in console when the postcss plugin can't find a file to process and therefore style to inject
Problem Statement/Justification
quickly understand why Panda is not working
Proposed Solution or API
not knowing the Postcss plugin API at all, i initially wanted to do something like this:
i think you get the idea:
but after analyzing the Postcss API, i realized that this wasn't possible. and that there doesn't seem to be an alternative API for this due to the way PostCSS works: postcss/postcss-reporter#60
Alternatives
No response
Additional Information
so, I open this issue for discussion and ask :
or maybe we should just consider that it's not possible and we can close the issue
especially since it's a problem that's probably quite rare : i've had bad luck, but i've wasted so much time with this that i wanted to suggest a solution for future people who might have the same problem
so yeah, i wanted to get your opinion before dropping the idea
if an alternative is possible and wanted, happy to work on it and open a PR
Beta Was this translation helpful? Give feedback.
All reactions