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

Viewed 354

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.

2 Answers

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

Same here, apears to be related with scss package.

Related