Configure include failure in postcss-px-to-viewport scss in react

clipboard.png
clipboard.png
clipboard.png

postcss is configured in create-react-app
uses the postcss-px-to-viewport plug-in to convert px to vw
, but when using scss, the scss obtained by calling the include method through include cannot be converted (px in common.scss will not be converted).
has anyone encountered it? ask for an answer!

Mar.11,2021

I also encountered this problem. How did you solve it?

Menu