-
I'm using CRA (react-scripts 3.4.4, but also tried with 4.0.0) Everything is fine in dev server, but I get this error when I try to build.
AFAIK the css file is already minified (is all in one line) and working fine in other projects. Can I make react-scripts NOT process css files inside node_modules? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I found the answer to this here: csstools/postcss-preset-env#163 (comment) I fixed my issue like this:
"resolutions": {
"react-scripts/postcss-preset-env/postcss-custom-properties": "^10.0.0"
} |
Beta Was this translation helpful? Give feedback.
-
thanks brother.. |
Beta Was this translation helpful? Give feedback.
I found the answer to this here: csstools/postcss-preset-env#163 (comment)
I fixed my issue like this:
install
"postcss-custom-properties": "^10.0.0"
use yarn resolutions to for react-scripts to use the same version: