Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Successful build. Publish fails with "Class constructor Parser cannot be invoked without 'new'"

I am seeing the following output when publishing my React App

 > react-scripts build
  
  Creating an optimized production build...
  Failed to compile.
  
  Class constructor Parser cannot be invoked without 'new'

I believe someone may have broken a package I am using because it builds fine locally and rebuilding older builds that were successful in my pipeline now fail with the same error. How can I locate the cause of this issue? There is no other relevant info in the stack trace.

like image 222
Tim L Avatar asked Sep 17 '20 00:09

Tim L


1 Answers

It is fixed now. this was an issue with postcss. the fix is released in PostCSS 7.0.34.

like image 90
Saurabh Singh Avatar answered Nov 20 '22 10:11

Saurabh Singh