Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

246
Views
React JS error - Expecting "CALC", ,..........."dimension", "number", got unexpected end of input CompileError: Begins at CSS selector undefined

I build my whole project, but when I'm doing yarn build, I'm getting this error from yarn i.e.

Parse error on line 1: 
^
Expecting "CALC", "LPAREN", "ADD", "SUB", "FUNCTION", "LENGTH", "ANGLE", "TIME", "FREQ", "RES", "UNKNOWN_DIMENSION", "EMS", "EXS", "CHS", "REMS", "VHS", "VWS", "VMINS", "VMAXS", "PERCENTAGE", "NUMBER", "expression", "math_expression", "function", "dimension", "number", got unexpected end of input
CompileError: Begins at CSS selector undefined


error Command failed with exit code 1

And I don't really think I did something wrong.. I tried creating a new react-app but and put all the files there, but still the same error:(

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I just had the same problem and got it fixed. This is caused by some typo in a .css file. For me, I had "text-align: calc();" in the /src/App.css file that creating a new react-app makes. I suspect you have a similar issue of using a css function without including an expression.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!