Skip to content

CSS ParseError when running react-scripts build #10095

Answered by JulianG
JulianG asked this question in Q&A
Discussion options

You must be logged in to vote

I found the answer to this here: csstools/postcss-preset-env#163 (comment)

I fixed my issue like this:

  1. install "postcss-custom-properties": "^10.0.0"

  2. use yarn resolutions to for react-scripts to use the same version:

"resolutions": {
  "react-scripts/postcss-preset-env/postcss-custom-properties": "^10.0.0"
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ignacioanezin
Comment options

@DiegoArrieta
Comment options

Answer selected by JulianG
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants