Ask questionsTrailing comma, spacing, and incorrect parentheses causes build issues in an application
<!-- IMPORTANT: If you do not provide a reproducible example (ie. via codepen.io), we likely won't be able to help you to the best of our abilities, and could automatically close this issue. -->
<Please describe here what faulty behavior you are experiencing> Trailing comma causes build issues
No Trailing comma should exist in math.max
This code block in the AutoNumeric.js file has a trailing comma after the last additionalDecimalPlacesRawValue variable as bolded below settings.decimalPlacesRawValue = Math.max(Math.max(settings.decimalPlacesShownOnBlur, settings.decimalPlacesShownOnFocus) +additionalDecimalPlacesRawValue, Number(settings.originalDecimalPlacesRawValue) + additionalDecimalPlacesRawValue, );
Answer questions AlexandreBonneau
If your build is failing, it means your build process does not correctly manage ECMAScript.
All in all, trailing commas, spacing and parentheses are always checked by eslint on build (and during edition via my IDE), so an error there is highly unlikely. I would suggest you give eslint a try (with that configuration file; it helps quite a lot.