Encountering an error while attempting to add a row to my handsontable instance:
core.js.pre-build-optimizer.js:15724 ERROR RangeError: toFixed() digits argument must be between 0 and 100 at Number.toFixed () at h (numbro.min.js.pre-build-optimizer.js:1) at numbro.min.js.pre-build-optimizer.js:1
Full error details can be found here: https://i.stack.imgur.com/1hMN9.png
This issue only arises with the command ng build -prod
(or using the --optimization
flag).
Debugging is challenging due to the compiled JS, but after pinpointing it with console.log()
, I identified the problematic handsontable call as:
hot.alter('insert_row');
Refactoring the project to include strict:true
in tsconfig.json
based on this handsontable compilation issue has proven to be quite laborious.
Any similar experiences or suggestions?
Versions in use:
- Angular 7.2
- Handsontable 7.0.0 (also observed in v6)
- Typescript 3.2.4
No direct usage of the numbro
library within my codebase; solely included as a dependency of handsontable
(and not utilized by any other libraries in the project as well).